- Synced preproc.y with gram.y.
- Synced pgc.l with scan.l.
- Synced keyword.c.
+
+Sun Mar 19 11:03:13 CET 2000
+
+ - Fixed quoting bug in disconnect statement.
- Set library version to 3.1.0.
- Set ecpg version to 2.7.0.
if (connection)
mmerror(ET_ERROR, "no at option for disconnect statement.\n");
- fprintf(yyout, "{ ECPGdisconnect(__LINE__, \"%s\");", $1);
+ fprintf(yyout, "{ ECPGdisconnect(__LINE__, %s);", $1);
whenever_action(2);
free($1);
}
ECPGDisconnect: SQL_DISCONNECT dis_name { $$ = $2; }
dis_name: connection_object { $$ = $1; }
- | CURRENT { $$ = make_str("CURRENT"); }
- | ALL { $$ = make_str("ALL"); }
- | /* empty */ { $$ = make_str("CURRENT"); }
+ | CURRENT { $$ = make_str("\"CURRENT\""); }
+ | ALL { $$ = make_str("\"ALL\""); }
+ | /* empty */ { $$ = make_str("\"CURRENT\""); }
connection_object: connection_target { $$ = $1; }
- | DEFAULT { $$ = make_str("DEFAULT"); }
+ | DEFAULT { $$ = make_str("\"DEFAULT\""); }
/*
* execute a given string as sql command
exec sql at pm commit;
strcpy(msg, "disconnect");
- exec sql disconnect all;
+ exec sql disconnect main;
+ exec sql disconnect pm;
if (dbgs != NULL)
fclose(dbgs);