We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VALUES("xxx");
BusTub crashed immediately when input VALUES("xxx");. Such as follow:
bustub> VALUES ('123'); +--------------+ | __values#0.0 | +--------------+ | 123 | +--------------+ bustub> VALUES ("123"); AddressSanitizer:DEADLYSIGNAL ================================================================= ==15583==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x5634f19e280d bp 0x7ffc933d1290 sp 0x7ffc933d1270 T0)
which is securely handled on BustTub Web Shell like this:
BustTub Web Shell
bustub> VALUES ("123"); unsupported TableReferenceType
But SELECT "xxx"; can be handled.
SELECT "xxx";
bustub> SELECT "123"; Message :: unsupported TableReferenceType unsupported TableReferenceType
The following information maybe useful to locate the problem:
VALUE("xxx"); was parsed as:
VALUE("xxx");
PGList(VALUES("xxx")) \ PGList(("xxx")) \ PGNode(("xxx")) \ PGColumnRef("xxx")
And for SELECT "xxx";
PGSelectStmt(SELECT "xxx") \ PGList("xxx") \ PGResTarget("xxx") \ PGColumnRef("xxx")
They step in the same funtion src/binder/bind_select.cpp:Binder::BindColumnRef but VALUE has no binder.scope_ (nullptr).
src/binder/bind_select.cpp:Binder::BindColumnRef
VALUE
binder.scope_
Thus, VALUE("xxx") takes runtime error on src/binder/bind_select.cpp:501.
VALUE("xxx")
src/binder/bind_select.cpp:501
The text was updated successfully, but these errors were encountered:
No branches or pull requests
BusTub crashed immediately when input
VALUES("xxx");
.Such as follow:
which is securely handled on
BustTub Web Shell
like this:But
SELECT "xxx";
can be handled.The following information maybe useful to locate the problem:
VALUE("xxx");
was parsed as:And for
SELECT "xxx";
They step in the same funtion
src/binder/bind_select.cpp:Binder::BindColumnRef
butVALUE
has nobinder.scope_
(nullptr).Thus,
VALUE("xxx")
takes runtime error onsrc/binder/bind_select.cpp:501
.The text was updated successfully, but these errors were encountered: