Fix bug in statemnt dealloc in psql driver

Sun, 13 Jun 2010 13:20:03 +0000

author
nrich@ii.net
date
Sun, 13 Jun 2010 13:20:03 +0000
changeset 38
627506d80e5b
parent 37
b6b07eecac0a
child 39
9320905982a8

Fix bug in statemnt dealloc in psql driver

dbd/postgresql/statement.c file | annotate | diff | comparison | revisions
--- 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