]> granicus.if.org Git - postgresql/commit
interval: tighten precision specification
authorBruce Momjian <bruce@momjian.us>
Sat, 18 Oct 2014 14:31:00 +0000 (10:31 -0400)
committerBruce Momjian <bruce@momjian.us>
Sat, 18 Oct 2014 14:31:00 +0000 (10:31 -0400)
commit417f92484da8c9a124e7eece8dbfb71f688a0104
treed424516b259096cdc9bdafb46af948d1b63e50df
parent97d554871c3d186db831b35c0eabe6d496e4f54b
interval:  tighten precision specification

interval precision can only be specified after the "interval" keyword if
no units are specified.

Previously we incorrectly checked the units to see if the precision was
legal, causing confusion.

Report by Alvaro Herrera
src/backend/parser/gram.y
src/test/regress/expected/interval.out
src/test/regress/sql/interval.sql