This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Substring function is not parsed correctly #532
Closed
Description
I'm trying to implement #483 but it looks like we broke substring. The unit tests run fine but when we login into a console it doesn't work.
mysql> select SUBSTRING("foo", 2, 2);
ERROR 1105 (HY000): unknown error: syntax error at position 23 near 'foo'
mysql> select substring("foobar", 1, 2);
ERROR 1105 (HY000): unknown error: syntax error at position 26 near 'foobar'
mysql> select SUBSTRING("foo", 1, 2);
ERROR 1105 (HY000): unknown error: syntax error at position 23 near 'foo'