Go to the source code of this file.
◆ dintdict_init()
Definition at line 32 of file dict_int.c.
43 foreach(l, dictoptions)
47 if (strcmp(defel->
defname,
"maxlen") == 0)
53 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
54 errmsg(
"maxlen value has to be >= 1")));
56 else if (strcmp(defel->
defname,
"rejectlong") == 0)
60 else if (strcmp(defel->
defname,
"absval") == 0)
67 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
68 errmsg(
"unrecognized intdict parameter: \"%s\"",
bool defGetBoolean(DefElem *def)
char * defGetString(DefElem *def)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_GETARG_POINTER(n)
#define PG_RETURN_POINTER(x)
void * palloc0(Size size)
References DictInt::absval, defGetBoolean(), defGetString(), DefElem::defname, ereport, errcode(), errmsg(), ERROR, lfirst, DictInt::maxlen, palloc0(), PG_GETARG_POINTER, PG_RETURN_POINTER, and DictInt::rejectlong.
◆ dintdict_lexize()
Definition at line 77 of file dict_int.c.
87 if (d->
absval && (in[0] ==
'+' || in[0] ==
'-'))
101 res[0].lexeme = NULL;
static void PGresult * res
#define PG_GETARG_INT32(n)
char * pnstrdup(const char *in, Size len)
void pfree(void *pointer)
References DictInt::absval, len, DictInt::maxlen, palloc0(), pfree(), PG_GETARG_INT32, PG_GETARG_POINTER, PG_RETURN_POINTER, pnstrdup(), DictInt::rejectlong, and res.
◆ PG_FUNCTION_INFO_V1() [1/2]
◆ PG_FUNCTION_INFO_V1() [2/2]
◆ PG_MODULE_MAGIC