Comments (5)
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.
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.
This is a mysql parser, and in that the syntax to escape column names is to use backticks. Please try name 1
.
from sqlparser.
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.
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)
- Support With Clause HOT 1
- Syntax error HOT 2
- support for := assignment operator
- Support for index definition `key (columns)`
- do not support primary key
- Recompile parsed query into SQL? HOT 1
- Clarify "byte" position
- Clarify which exact SQL syntaxes are supported HOT 1
- Node position
- This repo is out of date HOT 2
- Feature: Support for more SQL variants
- A question about using sqlparser to parse sql with placeholders
- how to bypass some sql keyword
- Does this parser detect sql injection?
- Multilevel qualifier treated as parse error
- parse error HOT 3
- Does it support nested queries/sub-quries HOT 1
- How to parse SQL procedure CALL
- Doesn't parse insert statement with `returning` clause
- Some table builder SQL parsing does not report an error but TableSpec is a null pointer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlparser.