GithubHelp home page GithubHelp logo

MySql backticks about atdatabases HOT 2 CLOSED

forbeslindesay avatar forbeslindesay commented on May 18, 2024
MySql backticks

from atdatabases.

Comments (2)

crisward avatar crisward commented on May 18, 2024

As an update, it would seem js doesn't have any easy work around for this. But according to the mysql documentation.

If the ANSI_QUOTES SQL mode is enabled, it is also permissible to quote identifiers within double quotation marks:

The ANSI_QUOTES mode causes the server to interpret double-quoted strings as identifiers. Consequently, when this mode is enabled, string literals must be enclosed within single quotation marks. They cannot be enclosed within double quotation marks. The server SQL mode is controlled as described in Section 5.1.11, “Server SQL Modes”.

More info here https://dev.mysql.com/doc/refman/8.0/en/identifiers.html

So there may be a work around by setting a mode.

from atdatabases.

ForbesLindesay avatar ForbesLindesay commented on May 18, 2024

I don't think this issue makes sense to address. It's normally not necessary to quote your identifiers, and in the rare cases where you do it is possible to work around the issue either using escaping via \ or using the sql.ident helper.

from atdatabases.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.