# HG changeset patch # User nrich@ii.net # Date 1276435203 0 # Node ID 627506d80e5b83e12401ca3d8ca880c7d0393af5 # Parent b6b07eecac0adaeae72e9fa99aa94a7da3a79e8c Fix bug in statemnt dealloc in psql driver 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)