Changeset: 08bf0f3ee0e2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=08bf0f3ee0e2
Modified Files:
sql/backends/monet5/sql_scenario.c
Branch: linear-hashing
Log Message:
make sure that incorrect protocol usage is directly stopped.
diffs (12 lines):
diff --git a/sql/backends/monet5/sql_scenario.c
b/sql/backends/monet5/sql_scenario.c
--- a/sql/backends/monet5/sql_scenario.c
+++ b/sql/backends/monet5/sql_scenario.c
@@ -1136,6 +1136,8 @@ SQLparser(Client c)
}
if (be->language !='S') {
msg = createException(SQL, "SQLparser", SQLSTATE(42000)
"Unrecognized language prefix: %ci\n", be->language);
+ in->pos = in->len; /* skip rest of the input */
+ c->mode = FINISHCLIENT; /* and disconnect, as client doesn't
respect the mapi protocol */
goto finalize;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list