Lines Matching refs:q

73 			char *q = NULL;  in pgsql_stmt_dtor()  local
76 spprintf(&q, 0, "DEALLOCATE %s", S->stmt_name); in pgsql_stmt_dtor()
77 res = PQexec(H->server, q); in pgsql_stmt_dtor()
78 efree(q); in pgsql_stmt_dtor()
110 char *q = NULL; in pgsql_stmt_dtor() local
113 spprintf(&q, 0, "CLOSE %s", S->cursor_name); in pgsql_stmt_dtor()
114 res = PQexec(H->server, q); in pgsql_stmt_dtor()
115 efree(q); in pgsql_stmt_dtor()
148 char *q = NULL; in pgsql_stmt_execute() local
151 spprintf(&q, 0, "CLOSE %s", S->cursor_name); in pgsql_stmt_execute()
152 PQclear(PQexec(H->server, q)); in pgsql_stmt_execute()
153 efree(q); in pgsql_stmt_execute()
156 …spprintf(&q, 0, "DECLARE %s SCROLL CURSOR WITH HOLD FOR %s", S->cursor_name, ZSTR_VAL(stmt->active… in pgsql_stmt_execute()
157 S->result = PQexec(H->server, q); in pgsql_stmt_execute()
158 efree(q); in pgsql_stmt_execute()
172 spprintf(&q, 0, "FETCH FORWARD 0 FROM %s", S->cursor_name); in pgsql_stmt_execute()
173 S->result = PQexec(H->server, q); in pgsql_stmt_execute()
174 efree(q); in pgsql_stmt_execute()
425 char *q = NULL; in pgsql_stmt_fetch() local
444 spprintf(&q, 0, "FETCH %s FROM %s", ori_str, S->cursor_name); in pgsql_stmt_fetch()
446 S->result = PQexec(S->H->server, q); in pgsql_stmt_fetch()
447 efree(q); in pgsql_stmt_fetch()
595 char *q=NULL; in pgsql_stmt_get_column_meta() local
649 spprintf(&q, 0, "SELECT TYPNAME FROM PG_TYPE WHERE OID=%u", S->cols[colno].pgsql_type); in pgsql_stmt_get_column_meta()
650 res = PQexec(S->H->server, q); in pgsql_stmt_get_column_meta()
651 efree(q); in pgsql_stmt_get_column_meta()