-
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.
sql/sem/tree: parse ISO8601 format with decimal places for interval t…
…ypes Previously, CockroachDB can not parse ISO8601 format interval type with decimals, but Postgres can parse successfully. For example, running "SELECT INTERVAL 'P1Y2M3DT4H5M6.235S'" in CockroachDB will cause an error like: ERROR: could not parse "P1Y2M3DT4H5M6.235S" as type interval: interval: unknown unit . in ISO-8601 duration P1Y2M3DT4H5M6.235S This patch fixes this issue. Now cockroachDB can parse ISO8601 format using decimals correctly and return the same result as Postgres. Fixes: #59720 Release note: none
- Loading branch information
shikamaru
committed
Feb 14, 2021
1 parent
d6d5fd4
commit ec68040
Showing
2 changed files
with
127 additions
and
1 deletion.
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