45 val->
s = (
char *)realloc(val->
s, len);
68 to->
s = strdup(from->
s);
128 void sqpValue(
char *strval,
int intval,
double dblval,
int type)
252 np->
value.
s = strdup(strval);
287 *ptr = tolower(*ptr);
291 if (strcmp(oper,
"=") == 0)
293 else if (strcmp(oper,
"<") == 0)
295 else if (strcmp(oper,
"<=") == 0)
297 else if (strcmp(oper,
">") == 0)
299 else if (strcmp(oper,
">=") == 0)
301 else if (strcmp(oper,
"<>") == 0)
303 else if (strcmp(oper,
"~") == 0)
305 else if (strcmp(oper,
"+") == 0)
307 else if (strcmp(oper,
"-") == 0)
309 else if (strcmp(oper,
"*") == 0)
311 else if (strcmp(oper,
"/") == 0)
313 else if (strcmp(oper,
"and") == 0)
315 else if (strcmp(oper,
"or") == 0)
317 else if (strcmp(oper,
"not") == 0)
int sqpAllocCol(SQLPSTMT *st, int n)
int sqpAllocVal(SQLPSTMT *st, int n)
int sqpSaveStr(SQLPVALUE *val, char *c)
SQLPNODE * sqpNewValueNode(char *strval, int intval, double dblval, int type)
void sqpColumn(char *col)
void sqpCopyValue(SQLPVALUE *from, SQLPVALUE *to)
void sqpValue(char *strval, int intval, double dblval, int type)
SQLPNODE * sqpNewExpressionNode(int oper, SQLPNODE *left, SQLPNODE *right)
char * sqpOperatorName(int oper)
int sqpOperatorCode(char *oper)
void sqpAssignment(char *col, char *strval, int intval, double dblval, SQLPNODE *expval, int type)
void sqpCommand(int command)
SQLPNODE * sqpNewColumnNode(char *name)
int sqpInitParser(SQLPSTMT *st)
void sqpInitValue(SQLPVALUE *val)
void sqpOrderColumn(char *col, int dir)
void sqpFreeNode(SQLPNODE *np)
void sqpColumnDef(char *col, int type, int width, int decimals)
SQLPNODE * sqpNewNode(void)
#define SQLP_NODE_EXPRESSION
char table[SQLP_MAX_TABLE+1]
char errmsg[SQLP_MAX_ERR+1]