1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-18 17:41:14 +03:00

Fixed DEALLOCATE PREPARE to use correct function call

This commit is contained in:
Michael Meskes 2004-05-21 13:50:59 +00:00
parent 10a8cc5cc5
commit 962c362495

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.263.2.13 2004/05/10 13:46:39 meskes Exp $ */ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.263.2.14 2004/05/21 13:50:59 meskes Exp $ */
/* Copyright comment */ /* Copyright comment */
%{ %{
@ -712,7 +712,7 @@ stmt: AlterDatabaseSetStmt { output_statement($1, 0, connection); }
{ {
if (connection) if (connection)
mmerror(PARSE_ERROR, ET_ERROR, "no at option for deallocate statement.\n"); 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); whenever_action(2);
free($1); free($1);
} }