diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-03-25 02:37:21 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-03-25 02:37:21 +0000 |
commit | ef56e51cd32b0590d5e048e8a6ff777b8a64916b (patch) | |
tree | 9df03033a6e9bf685dab5f402fdbb0ca43c880b0 | |
parent | e16b43e2dc87fa8dea1f71f9bb924bdac14497d9 (diff) |
- Renamed the variable names to something shorter, and I hope
nicer. Also, I grabbed my copy of the Informix manual, and
added a couple of variables that make sense (formats for
money, time, a language setting, a timezone).
- New functions SetPGVariable() and GetPGVariable() in tcop/*.
These don't actually do anything for the moment, but should
be enough to implement the SET var_name TO var_val in the
parser?
SetPGVariable() expects just two strings, the var_name and
the var_value from above, and is expected to do the right thing.
Returns TRUE if everything okay.
From: "Martin J. Laubach" <mjl@wwx.vip.at>
-rw-r--r-- | src/backend/tcop/Makefile | 4 | ||||
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/backend/tcop/Makefile b/src/backend/tcop/Makefile index 47bdd96909e..a40e3e717e5 100644 --- a/src/backend/tcop/Makefile +++ b/src/backend/tcop/Makefile @@ -4,7 +4,7 @@ # Makefile for tcop # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.8 1996/11/18 02:26:55 bryanh Exp $ +# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.9 1997/03/25 02:35:22 scrappy Exp $ # #------------------------------------------------------------------------- @@ -24,7 +24,7 @@ ifeq ($(CC), gcc) CFLAGS+= -Wno-error endif -OBJS= aclchk.o dest.o fastpath.o postgres.o pquery.o utility.o +OBJS= aclchk.o dest.o fastpath.o postgres.o pquery.o utility.o variable.o all: SUBSYS.o diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 4b3a8630a51..b5ac17f5cfa 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.25 1997/03/18 20:15:39 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.26 1997/03/25 02:37:21 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -105,8 +105,12 @@ struct EnvironmentOptions const char *envName, *pgName; } EnvironmentOptions[] = { - { "PG_DATEFORMAT", "pg_dateformat" }, - { "PG_FLOATFORMAT", "pg_floatformat" }, + { "PG_DATE", "date" }, + { "PG_TIME", "time" }, + { "PG_FLOAT", "float" }, + { "PG_LANG", "language" }, + { "PG_TZONE", "timezone" }, + { "PG_MONEY", "money" }, { NULL } }; |