index de46f51ca721d59b277f734ce20d2ad3cc1d1677..8d33444e5c765853e856225f866cef0ed53d81e1 100644 (file)
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.addons,v 1.16 2010年01月29日 16:28:13 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.addons,v 1.17 2010年03月21日 11:56:45 meskes Exp $ */
ECPG: stmtClosePortalStmt block
{
if (INFORMIX_MODE)
| ECPGFree
{
const char *con = connection ? connection : "NULL";
- if (strcmp(1,ドル "all"))
- fprintf(yyout, "{ ECPGdeallocate(__LINE__, %d, %s, \"%s\");", compat, con, 1ドル);
- else
+
+ if (!strcmp(1,ドル "all"))
fprintf(yyout, "{ ECPGdeallocate_all(__LINE__, %d, %s);", compat, con);
+ else if (1ドル[0] == ':')
+ fprintf(yyout, "{ ECPGdeallocate(__LINE__, %d, %s, %s);", compat, con, 1ドル+1);
+ else
+ fprintf(yyout, "{ ECPGdeallocate(__LINE__, %d, %s, \"%s\");", compat, con, 1ドル);
whenever_action(2);
free(1ドル);
index e9bc9e7ae0315f4cb3728b299c6538b1fbc0534a..436c4fda4bdacba4ff0b0a3a5765189cbdcdcfae 100644 (file)
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.22 2010年03月20日 18:53:00 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.23 2010年03月21日 11:56:45 meskes Exp $ */
statements: /*EMPTY*/
| statements statement
* the exec sql free command to deallocate a previously
* prepared statement
*/
-ECPGFree: SQL_FREE name { $$ = 2ドル; }
+ECPGFree: SQL_FREE cursor_name { $$ = 2ドル; }
| SQL_FREE ALL { $$ = make_str("all"); }
;