diff options
author | Michael Meskes <meskes@postgresql.org> | 2003-06-20 13:36:34 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2003-06-20 13:36:34 +0000 |
commit | 2cbaaee6c3bd4f41470aa44d6a620de0e93d1036 (patch) | |
tree | 014d0850818f0d2326a9eb6c19e49111af5a7b4c /src/interfaces/ecpg/preproc/preproc.y | |
parent | d9b2401d909c32eca81c44bf380a3f897e1cbf4e (diff) |
Just another Informix compatibility change. They uses "free" for cursors as wellafter closing them.
Diffstat (limited to 'src/interfaces/ecpg/preproc/preproc.y')
-rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 107d84251f5..7a8c2284bd2 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.235 2003/06/20 12:00:59 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.236 2003/06/20 13:36:34 meskes Exp $ */ /* Copyright comment */ %{ @@ -674,7 +674,10 @@ stmt: AlterDatabaseSetStmt { output_statement($1, 0, connection); } } | ECPGFree { - fprintf(yyout, "{ ECPGdeallocate(__LINE__, \"%s\");", $1); + if (compat == ECPG_COMPAT_INFORMIX) + fprintf(yyout, "{ ECPGdeallocate_informix(__LINE__, \"%s\");", $1); + else + fprintf(yyout, "{ ECPGdeallocate(__LINE__, \"%s\");", $1); whenever_action(2); free($1); |