aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/execute.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-11-12 21:04:46 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-11-12 21:04:46 +0000
commita585c20d12d0e22befc8308e9f8ccb6f54a5df69 (patch)
treed1e33e4faa35872ffb120748a06bc9b44665abc0 /src/interfaces/ecpg/lib/execute.c
parent9c9ea41b3c5ed05694750b3103bcc243940dd89b (diff)
downloadpostgresql-a585c20d12d0e22befc8308e9f8ccb6f54a5df69.tar.gz
postgresql-a585c20d12d0e22befc8308e9f8ccb6f54a5df69.zip
Tweak parser so that there is a defined representation for datatypes
bpchar, bit, numeric with typmod -1. Alter format_type so that this representation is printed when the typmod is -1. This ensures that tables having such columns can be pg_dump'd and reloaded correctly. Also, remove the rather useless and non-SQL-compliant default precision and scale for type NUMERIC. A numeric column declared as such (with no precision/scale) will now have typmod -1 which means that numeric values of any precision/scale can be stored in it, without conversion to a uniform scale. This seems significantly more useful than the former behavior. Part of response to bug #513.
Diffstat (limited to 'src/interfaces/ecpg/lib/execute.c')
0 files changed, 0 insertions, 0 deletions