diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-08-28 14:27:17 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-08-28 14:27:17 +0900 |
commit | 617f9b7d4b10fec00a86802eeb34d7295c52d747 (patch) | |
tree | 8b2fd69b379df49ec705940c4d1a41cc7299e727 /src/backend/parser/parse_utilcmd.c | |
parent | 165d581f146b09543b832513ee00fead132ba6b1 (diff) | |
download | postgresql-617f9b7d4b10fec00a86802eeb34d7295c52d747.tar.gz postgresql-617f9b7d4b10fec00a86802eeb34d7295c52d747.zip |
Tighten unit parsing in internal values
Interval values now generate an error when the user has multiple
consecutive units or a unit without a value. Previously, it was
possible to specify multiple units consecutively which is contrary to
what the documentation allows, so it was possible to finish with
confusing interval values.
This is a follow-up of the work done in 165d581f146b.
Author: Joseph Koshakow
Reviewed-by: Jacob Champion, Gurjeet Singh, Reid Thompson
Discussion: https://postgr.es/m/CAAvxfHd-yNO+XYnUxL=GaNZ1n+eE0V-oE0+-cC1jdjdU0KS3iw@mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions