mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03:00
Just another Informix compatibility change. They uses "free" for cursors as wellafter closing them.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/prepare.c,v 1.2 2003/06/15 04:07:58 momjian Exp $ */
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/prepare.c,v 1.3 2003/06/20 13:36:34 meskes Exp $ */
|
||||
|
||||
#define POSTGRES_ECPG_INTERNAL
|
||||
#include "postgres_fe.h"
|
||||
@@ -106,6 +106,18 @@ ECPGprepare(int lineno, char *name, char *variable)
|
||||
/* handle the EXEC SQL DEALLOCATE PREPARE statement */
|
||||
bool
|
||||
ECPGdeallocate(int lineno, char *name)
|
||||
{
|
||||
bool ret = ECPGdeallocate_one(lineno, name);
|
||||
|
||||
if (!ret)
|
||||
ECPGraise(lineno, ECPG_INVALID_STMT, name);
|
||||
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
||||
bool
|
||||
ECPGdeallocate_one(int lineno, char *name)
|
||||
{
|
||||
struct prepared_statement *this,
|
||||
*prev;
|
||||
@@ -126,7 +138,6 @@ ECPGdeallocate(int lineno, char *name)
|
||||
ECPGfree(this);
|
||||
return true;
|
||||
}
|
||||
ECPGraise(lineno, ECPG_INVALID_STMT, name);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user