Giter Club home page Giter Club logo

Comments (5)

bramp avatar bramp commented on July 17, 2024 2

Yes, I'll look into that other query.

As for case sensitivity, take a look at https://dev.mysql.com/doc/refman/8.0/en/identifier-case-sensitivity.html as it describes the rules for MySQL.

from sqlparser.

Colhodm avatar Colhodm commented on July 17, 2024

Also another error is that your parser is flagging a syntax error on this expression:
"select * from S3Object where cast(age AS int) > 12" at the character after int even though this is a perfectly valid query.
Thanks!
Arjun

from sqlparser.

bramp avatar bramp commented on July 17, 2024

This is a mysql parser, and in that the syntax to escape column names is to use backticks. Please try name 1.

from sqlparser.

Colhodm avatar Colhodm commented on July 17, 2024

Hi, awesome that works for escaping spaces in column names.

The issue with the query: select * from S3Object where cast(age AS int) > 12 still stands, even if I try age instead of age. This is a valid SQL query as demonstrated here:
https://aws.amazon.com/blogs/developer/introducing-support-for-amazon-s3-select-in-the-aws-sdk-for-ruby/
Another question/issue I had is does your parser support case sensitivity as shown/described in this amazon example: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference-select.html.
Thanks so much!

from sqlparser.

Colhodm avatar Colhodm commented on July 17, 2024

Hi, so I read through that doc, and I understand the general approach and rules for MySQL, but as for your actual built parser, is there anyway to specify case sensitivity for column names or do you not support this, e.g I have two columns "weight" and "Weight", and I use some type of escape character to show that I want it to be case sensitive, as Amazon shows in their Select S3 API here: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference-select.html.
Sorry if I'm being redundant, I'm just not sure I see the relationship of how the file system being case sensitive relates to your parser. E.g if your parser was on linux, shouldnt it support case sensitivity.
Sorry If I was unclear, or a little obtuse!
Thanks for all the help!
Arjun!

from sqlparser.

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.