blob: a5110e883f2b2eaa285502982632eadd6e72d8f8 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 | /*
 * Headers for handling of 'SET var TO', 'SHOW var' and 'RESET var'
 * statements
 *
 * $Id: variable.h,v 1.8 1998/10/08 18:30:27 momjian Exp $
 *
 */
#ifndef VARIABLE_H
#define VARIABLE_H 1
enum DateFormat
{
	Date_Postgres, Date_SQL, Date_ISO
};
/*-----------------------------------------------------------------------*/
struct PGVariables
{
	struct
	{
		bool		euro;
		enum DateFormat format;
	}			date;
};
extern struct PGVariables PGVariables;
/*-----------------------------------------------------------------------*/
bool		SetPGVariable(const char *, const char *);
bool		GetPGVariable(const char *);
bool		ResetPGVariable(const char *);
#endif	 /* VARIABLE_H */
 |