26 return lua_type; |
33 return lua_type; |
27 } |
34 } |
28 |
35 |
29 static int deallocate(statement_t *statement) { |
36 static int deallocate(statement_t *statement) { |
30 char command[IDLEN+11]; |
37 char command[IDLEN+11]; |
31 |
38 PGresult *result; |
32 snprintf(command, IDLEN+11, "DEALLOCATE %s", statement->name); |
39 ExecStatusType status; |
33 |
40 |
34 PGresult *result = PQexec(statement->postgresql, command); |
41 snprintf(command, IDLEN+11, "DEALLOCATE %s", statement->name); |
35 ExecStatusType status; |
42 result = PQexec(statement->postgresql, command); |
36 |
43 |
37 if (!result) |
44 if (!result) |
38 return 1; |
45 return 1; |
39 |
46 |
40 status = PQresultStatus(result); |
47 status = PQresultStatus(result); |