diff -r b6b07eecac0a -r 627506d80e5b dbd/postgresql/statement.c --- a/dbd/postgresql/statement.c Tue Jun 08 12:03:06 2010 +0000 +++ b/dbd/postgresql/statement.c Sun Jun 13 13:20:03 2010 +0000 @@ -34,11 +34,11 @@ } static int deallocate(statement_t *statement) { - char command[IDLEN+11]; + char command[IDLEN+13]; PGresult *result; ExecStatusType status; - snprintf(command, IDLEN+11, "DEALLOCATE %s", statement->name); + snprintf(command, IDLEN+13, "DEALLOCATE \"%s\"", statement->name); result = PQexec(statement->postgresql, command); if (!result)