Fixed DEALLOCATE PREPARE to use correct function call
authorMichael Meskes <meskes@postgresql.org>
Fri, 21 May 2004 13:50:59 +0000 (13:50 +0000)
committerMichael Meskes <meskes@postgresql.org>
Fri, 21 May 2004 13:50:59 +0000 (13:50 +0000)
src/interfaces/ecpg/preproc/preproc.y

index 724a4bc782d57fe420b2a02a43736f731bc67839..a0abf6e7bcd012d3915922f7126dda748e8698fd 100644 (file)
@@ -712,7 +712,7 @@ stmt:  AlterDatabaseSetStmt         { output_statement($1, 0, connection); }
                {
                        if (connection)
                                mmerror(PARSE_ERROR, ET_ERROR, "no at option for deallocate statement.\n");
-                       fprintf(yyout, "{ ECPGdeallocate(__LINE__, \"%s\");", $1);
+                       fprintf(yyout, "{ ECPGdeallocate(__LINE__, %d, %s);", compat, $1);
                        whenever_action(2);
                        free($1);
                }