aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/tutorial/pgtools.py
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-01-20 02:24:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-01-20 02:24:50 +0000
commit7476e3718b038f563d39ea7f108fbff156275c94 (patch)
treea93a49f59461e6d5966bb2e1a666a6bfc1082338 /src/interfaces/python/tutorial/pgtools.py
parent08195a43f318581e373792fd30e00813ab3ad9fc (diff)
downloadpostgresql-7476e3718b038f563d39ea7f108fbff156275c94.tar.gz
postgresql-7476e3718b038f563d39ea7f108fbff156275c94.zip
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.
Diffstat (limited to 'src/interfaces/python/tutorial/pgtools.py')
0 files changed, 0 insertions, 0 deletions