Minor parser bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Minor parser bug

Cezary H. Noweta
Hello,

SQLite until the newest one:

sqlite> VALUES (1),();
Error: no tables specified

should be:

sqlite> VALUES (1),();
Error: near ")": syntax error

Fix:

src/parse.y:

values(A) ::= values(A) COMMA LP exprlist(Y) RP. {

to

values(A) ::= values(A) COMMA LP nexprlist(Y) RP. {

(missing ``n'' before ``exprlist'').

Desired effect is achieved (i.e. error, because that statement is not
preparable), however the message is misleading.

-- best regards

Cezary H. Noweta
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users