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\"",
87 if (d->
absval && (in[0] ==
'+' || in[0] ==
'-'))
101 res[0].lexeme = NULL;
static void PGresult * res
bool defGetBoolean(DefElem *def)
char * defGetString(DefElem *def)
Datum dintdict_lexize(PG_FUNCTION_ARGS)
PG_FUNCTION_INFO_V1(dintdict_init)
Datum dintdict_init(PG_FUNCTION_ARGS)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_INT32(n)
#define PG_RETURN_POINTER(x)
char * pnstrdup(const char *in, Size len)
void pfree(void *pointer)
void * palloc0(Size size)