提交 ef56e51c 编写于 作者: M Marc G. Fournier

- 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>
上级 e16b43e2
......@@ -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
......
......@@ -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 }
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册