]> granicus.if.org Git - postgresql/commit
Assign a typmod of -1 to unadorned CHAR and NUMERIC type specs. This
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Jan 2000 02:24:50 +0000 (02:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Jan 2000 02:24:50 +0000 (02:24 +0000)
commit7476e3718b038f563d39ea7f108fbff156275c94
treea93a49f59461e6d5966bb2e1a666a6bfc1082338
parent08195a43f318581e373792fd30e00813ab3ad9fc
Assign a typmod of -1 to unadorned CHAR and NUMERIC type specs.  This
allows casts without specific length requirements to continue to work
as they did before; that is, x::char will not truncate the value of x,
whereas x::char(1) will.  Likewise for NUMERIC precision/scale.
The column length defaults of char(1) and numeric(30,6) are now inserted
in analyze.c's processing of CREATE TABLE.
src/backend/parser/analyze.c
src/backend/parser/gram.y