*** src/backend/parser/gram.y.orig Thu Nov 15 23:08:33 2001 --- src/backend/parser/gram.y Tue Dec 4 17:52:10 2001 *************** *** 4058,4064 **** { $$ = $1; if ($2 != -1) ! $$->typmod = ((($2 & 0x7FFF) << 16) | 0xFFFF); } | ConstInterval '(' Iconst ')' opt_interval { --- 4058,4064 ---- { $$ = $1; if ($2 != -1) ! $$->typmod = (($2 << 16) | 0xFFFF); } | ConstInterval '(' Iconst ')' opt_interval { *************** *** 4328,4337 **** * - thomas 2001-09-06 */ $$->timezone = $2; ! /* SQL99 specified a default precision of six. ! * - thomas 2001-09-30 ! */ ! $$->typmod = 6; } | TIME '(' Iconst ')' opt_timezone { --- 4328,4334 ---- * - thomas 2001-09-06 */ $$->timezone = $2; ! $$->typmod = -1; } | TIME '(' Iconst ')' opt_timezone { *************** *** 4352,4361 **** $$->name = xlateSqlType("timetz"); else $$->name = xlateSqlType("time"); ! /* SQL99 specified a default precision of zero. ! * - thomas 2001-09-30 ! */ ! $$->typmod = 0; } ; --- 4349,4355 ---- $$->name = xlateSqlType("timetz"); else $$->name = xlateSqlType("time"); ! $$->typmod = -1; } ; *************** *** 5603,5609 **** n->val.val.str = $2; /* precision is not specified, but fields may be... */ if ($3 != -1) ! n->typename->typmod = ((($3 & 0x7FFF) << 16) | 0xFFFF); $$ = (Node *)n; } | ConstInterval '(' Iconst ')' Sconst opt_interval --- 5597,5603 ---- n->val.val.str = $2; /* precision is not specified, but fields may be... */ if ($3 != -1) ! n->typename->typmod = (($3 << 16) | 0xFFFF); $$ = (Node *)n; } | ConstInterval '(' Iconst ')' Sconst opt_interval