forked from orafce/orafce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oraguc.c
40 lines (32 loc) · 745 Bytes
/
oraguc.c
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
34
35
36
37
38
39
40
#include "postgres.h"
#include "utils/guc.h"
#include "orafce.h"
#include "builtins.h"
/* default value */
char *nls_date_format = NULL;
void
_PG_init(void)
{
#if PG_VERSION_NUM >= 80400
/* Define custom GUC variables. */
DefineCustomStringVariable("orafce.nls_date_format",
"Emulate oracle's date output behaviour.",
NULL,
&nls_date_format,
NULL,
PGC_USERSET,
0,
#if PG_VERSION_NUM >= 90100
NULL,
#endif
NULL, NULL);
#else
/* Define custom GUC variables. */
DefineCustomStringVariable("orafce.nls_date_format",
"Emulate oracle's date output behaviour.",
NULL,
&nls_date_format,
PGC_USERSET,
NULL, NULL);
#endif
}