46 val->
s = (
char *)realloc(val->
s, len);
69 to->
s = strdup(from->
s);
129 void sqpValue(
char *strval,
int intval,
double dblval,
int type)
253 np->
value.
s = strdup(strval);
288 *ptr = tolower(*ptr);
292 if (strcmp(oper,
"=") == 0)
294 else if (strcmp(oper,
"<") == 0)
296 else if (strcmp(oper,
"<=") == 0)
298 else if (strcmp(oper,
">") == 0)
300 else if (strcmp(oper,
">=") == 0)
302 else if (strcmp(oper,
"<>") == 0)
304 else if (strcmp(oper,
"~") == 0)
306 else if (strcmp(oper,
"+") == 0)
308 else if (strcmp(oper,
"-") == 0)
310 else if (strcmp(oper,
"*") == 0)
312 else if (strcmp(oper,
"/") == 0)
314 else if (strcmp(oper,
"and") == 0)
316 else if (strcmp(oper,
"or") == 0)
318 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]