dbd/postgresql/statement.c

changeset 38
627506d80e5b
parent 33
6c64c45e7d8f
equal deleted inserted replaced
37:b6b07eecac0a 38:627506d80e5b
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

mercurial