Skip to content
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
@campoy

Description

@campoy

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 that OFF is not a known column.
  • SET @@session.autocommit=ON fails to parse since ON 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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy