Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef56e51

Browse files
committed
- 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>
1 parente16b43e commitef56e51

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

‎src/backend/tcop/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for tcop
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.8 1996/11/18 02:26:55 bryanh Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.9 1997/03/25 02:35:22 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -24,7 +24,7 @@ ifeq ($(CC), gcc)
2424
CFLAGS+= -Wno-error
2525
endif
2626

27-
OBJS= aclchk.o dest.o fastpath.o postgres.o pquery.o utility.o
27+
OBJS= aclchk.o dest.o fastpath.o postgres.o pquery.o utility.o variable.o
2828

2929
all: SUBSYS.o
3030

‎src/interfaces/libpq/fe-connect.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.25 1997/03/18 20:15:39 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.26 1997/03/25 02:37:21 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -105,8 +105,12 @@ struct EnvironmentOptions
105105
constchar*envName,*pgName;
106106
}EnvironmentOptions[]=
107107
{
108-
{"PG_DATEFORMAT","pg_dateformat" },
109-
{"PG_FLOATFORMAT","pg_floatformat" },
108+
{"PG_DATE","date" },
109+
{"PG_TIME","time" },
110+
{"PG_FLOAT","float" },
111+
{"PG_LANG","language" },
112+
{"PG_TZONE","timezone" },
113+
{"PG_MONEY","money" },
110114
{NULL }
111115
};
112116

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp