-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34412: sql: JSON-ify timestamps using RFC3339 format r=bobvawter a=bobvawter Currently, when converting a timestamp value to a JSON string, we use CockroachDB's customary string format, which is RFC3339 without the T separator. This creates some compatibility problems with JSON consumers which expect to receive exactly RFC3339-formatted timestamp value. The output in the logictest has been cross-checked against a PostgreSQL 10 database. Fixes #34372 Release note (sql change): Formatting of timestamps as JSON strings has been changed to always use the RFC3339 format instead of Cockroach's customary format. Users can now expect to see a `T` separator instead of a space between the date and time components. Co-authored-by: Bob Vawter <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters