dbd/postgresql/statement.c

changeset 38
627506d80e5b
parent 33
6c64c45e7d8f
--- 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)

mercurial