OSDN Git Service

Get rid of postgres.c's separate parsing logic for PGDATESTYLE env.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Feb 2000 22:10:47 +0000 (22:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Feb 2000 22:10:47 +0000 (22:10 +0000)
commitf46571165d0d0e82b36e1f4ca2a10efb7255e3e6
treea35ea254ff94039fb4d4aaee6f2c588e90f15ef1
parentbd43ae0ecd607a22c321df57366c4b900e4e9c0f
Get rid of postgres.c's separate parsing logic for PGDATESTYLE env.
variable, instead calling same code in variable.c that is used to parse
SET DATESTYLE.  Fix bug: although backend's startup datestyle had been
changed to ISO, 'RESET DATESTYLE' and 'SET DATESTYLE TO DEFAULT' didn't
know about it.  For consistency I have made the latter two reset to the
PGDATESTYLE-defined initial value, which may not be the same as the
compiled-in default of ISO.
src/backend/commands/variable.c
src/backend/tcop/postgres.c
src/include/commands/variable.h