dolthub / vitess

Vitess is a database clustering system for horizontal scaling of MySQL.
http://vitess.io
Apache License 2.0
22 stars 20 forks source link

Bug fix: Off-by-one error when parsing multiple statements #356

Closed fulghum closed 2 months ago

fulghum commented 2 months ago

An off-by-one error in multistatement parsing prevents us from parsing multistatements without a space between the delimiter and the next statement. For example: "SELECT 1;SELECT 2;" would previously be parsed as "SELECT 1;S" and "ELECT 2;".

Found while testing changes for https://github.com/dolthub/driver/issues/28