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 /src/interfaces/libpq/fe-connect.c | |
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>
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 10 |
1 files changed, 7 insertions, 3 deletions
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 } }; |