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