-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
panic on CREATE TABLE L(x)L
#44
Comments
alright I found it, in
generates: //line 161 "src/parser/parse.y"
{
if "strict".eq_ignore_ascii_case(&self.yy_move(0).yy222().0) {
yylhsminor = YYMINORTYPE::yy201( TableOptions::STRICT);
}else{
yylhsminor = YYMINORTYPE::yy201( TableOptions::NONE);
let msg = format!("unknown table option: {}", &self.yy_move(0).yy222());
self.ctx.sqlite3_error_msg(&msg);
}
} but the call to changing the rule to:
it doesn't panic anymore, but doesn't return an error either. Still investigating. |
Indeed, in one action, we are supposed to consume entry once. |
I fixed it by immediately returning a |
I've reapplied your fix here: a7cd0c1 |
The following input causes a panic:
CREATE TABLE L(x)L
Not sure what to do about this one, it hits an unreachable statement in parse.rs:
I have many more inputs that trigger that as well, but they all are relatively similar to that one.
The text was updated successfully, but these errors were encountered: