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.
Support ON/OFF as synonyms of 1/0 #374
Closed
Description
Some drivers (notably Python's mysql-connector) set some variables by using ON
and OFF
rather than using 1
and 0
.
Since these are currently not supported the behavior when these are set (which happens while the connection is being established) varies:
SET @@session.autocommit=OFF
causes an error indicating thatOFF
is not a known column.SET @@session.autocommit=ON
fails to parse sinceON
is also a reserved keyword.
I did some hacky changes to prove this could be fixed by making ON
and OFF
non reserved keywords and I was then able to connect from a Jupyter Notebook.
I consider this change quite urgent, since it is blocking usage of gitbase
from many different SQL drivers.