Changeset: f7c197f376e2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f7c197f376e2
Modified Files:
sql/backends/monet5/sql_scenario.c
Branch: Jul2021
Log Message:
in case of unknown Xcmd also advance the read/parsed input buffer.
diffs (14 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
@@ -1095,8 +1095,10 @@ SQLparser(Client c)
}
if (strncmp(in->buf + in->pos, "quit", 4) == 0) {
c->mode = FINISHCLIENT;
+ in->pos = in->len; /* HACK: should use parsed
length */
return MAL_SUCCEED;
}
+ in->pos = in->len; /* HACK: should use parsed length */
msg = createException(SQL, "SQLparser", SQLSTATE(42000)
"Unrecognized X command: %s\n", in->buf + in->pos);
goto finalize;
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]