greenplumn orafce 源码
greenplumn orafce 代码
文件路径:/gpcontrib/orafce/orafce.c
#include "postgres.h"
#include "storage/lwlock.h"
#include "storage/shmem.h"
#include "utils/guc.h"
#include "commands/variable.h"
#include "orafce.h"
#include "builtins.h"
#include "pipe.h"
/* default value */
char *nls_date_format = NULL;
char *orafce_timezone = NULL;
void
_PG_init(void)
{
#if PG_VERSION_NUM < 90600
RequestAddinLWLocks(1);
#endif
RequestAddinShmemSpace(SHMEMMSGSZ);
/* Define custom GUC variables. */
DefineCustomStringVariable("orafce.nls_date_format",
"Emulate oracle's date output behaviour.",
NULL,
&nls_date_format,
NULL,
PGC_USERSET,
0,
NULL,
NULL, NULL);
DefineCustomStringVariable("orafce.timezone",
"Specify timezone used for sysdate function.",
NULL,
&orafce_timezone,
"GMT",
PGC_USERSET,
0,
check_timezone, NULL, show_timezone);
DefineCustomBoolVariable("orafce.varchar2_null_safe_concat",
"Specify timezone used for sysdate function.",
NULL,
&orafce_varchar2_null_safe_concat,
false,
PGC_USERSET,
0,
NULL, NULL, NULL);
EmitWarningsOnPlaceholders("orafce");
}
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦