mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	- 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>
			
			
This commit is contained in:
		
							parent
							
								
									e16b43e2dc
								
							
						
					
					
						commit
						ef56e51cd3
					
				| @ -4,7 +4,7 @@ | |||||||
| #    Makefile for tcop
 | #    Makefile for tcop
 | ||||||
| #
 | #
 | ||||||
| # IDENTIFICATION
 | # 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 | CFLAGS+= -Wno-error | ||||||
| endif | 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 | all: SUBSYS.o | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ | |||||||
|  * |  * | ||||||
|  * |  * | ||||||
|  * IDENTIFICATION |  * 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; | 	const char *envName, *pgName; | ||||||
| 	} EnvironmentOptions[] = | 	} EnvironmentOptions[] = | ||||||
| 	{ | 	{ | ||||||
| 		{ "PG_DATEFORMAT",	"pg_dateformat" }, | 		{ "PG_DATE",	"date" }, | ||||||
| 		{ "PG_FLOATFORMAT",	"pg_floatformat" }, | 		{ "PG_TIME",	"time" }, | ||||||
|  | 		{ "PG_FLOAT",	"float" }, | ||||||
|  | 		{ "PG_LANG",	"language" }, | ||||||
|  | 		{ "PG_TZONE",	"timezone" }, | ||||||
|  | 		{ "PG_MONEY",	"money" }, | ||||||
| 		{ NULL } | 		{ NULL } | ||||||
| 	}; | 	}; | ||||||
| 	 | 	 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user