1997-04-17 15:50:57 +02:00
|
|
|
/*
|
1997-09-07 07:04:48 +02:00
|
|
|
* Headers for handling of 'SET var TO', 'SHOW var' and 'RESET var'
|
1997-04-23 07:52:32 +02:00
|
|
|
* statements
|
1997-04-17 15:50:57 +02:00
|
|
|
*
|
1997-09-08 04:41:22 +02:00
|
|
|
* $Id: variable.h,v 1.6 1997/09/08 02:39:21 momjian Exp $
|
1997-04-17 15:50:57 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
enum DateFormat
|
|
|
|
{
|
|
|
|
Date_Postgres, Date_SQL, Date_ISO
|
|
|
|
};
|
1997-04-17 15:50:57 +02:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------*/
|
|
|
|
struct PGVariables
|
1997-09-07 07:04:48 +02:00
|
|
|
{
|
1997-04-17 15:50:57 +02:00
|
|
|
struct
|
1997-09-07 07:04:48 +02:00
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
bool euro;
|
1997-04-17 15:50:57 +02:00
|
|
|
enum DateFormat format;
|
1997-09-08 04:41:22 +02:00
|
|
|
} date;
|
1997-09-07 07:04:48 +02:00
|
|
|
};
|
1997-04-17 15:50:57 +02:00
|
|
|
|
|
|
|
extern struct PGVariables PGVariables;
|
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------*/
|
1997-09-08 04:41:22 +02:00
|
|
|
bool SetPGVariable(const char *, const char *);
|
|
|
|
bool GetPGVariable(const char *);
|
|
|
|
bool ResetPGVariable(const char *);
|