24 #include <grass/sqlp.h>
31 st = (SQLPSTMT *) calloc(1,
sizeof(SQLPSTMT));
43 st->Col = (SQLPVALUE *) realloc(st->Col, n *
sizeof(SQLPVALUE));
44 st->ColType = (
int *)realloc(st->ColType, n *
sizeof(
int));
45 st->ColWidth = (
int *)realloc(st->ColWidth, n *
sizeof(
int));
46 st->ColDecim = (
int *)realloc(st->ColDecim, n *
sizeof(
int));
48 for (i = st->nCol; i < n; i++) {
64 st->Val = (SQLPVALUE *) realloc(st->Val, n *
sizeof(SQLPVALUE));
66 for (i = st->nVal; i < n; i++) {
81 for (i = 0; i < st->aCol; i++)
92 for (i = 0; i < st->aVal; i++)
102 if (st->upperNodeptr)
int sqpAllocVal(SQLPSTMT *st, int n)
void sqpFreeNode(SQLPNODE *np)
int sqpFreeStmt(SQLPSTMT *st)
int sqpAllocCol(SQLPSTMT *st, int n)
SQLPSTMT * sqpInitStmt(void)