ewaters / altsql-shell

An easily extensible DBI shell, perfect for a drop-in replacement to mysql-client
http://ewaters.github.com/altsql-shell
123 stars 19 forks source link

Don't accept term command if ';' is EOL but within a quote #20

Open ewaters opened 12 years ago

ewaters commented 12 years ago

This should work:

altsql> select * from film where title = ";
";

This means: select * from film where title = ";\n" We need to look at the buffer and determine if the ';' or '\c' or '\g' is within a quote scope before treating it as an EOL signifier.