DCParser
DCParser copied to clipboard
To support PG compliant SQL DML statement
Description
Since TiDB is Mysql compliant database, we need to adjust DCParser yacc paser files to remove mysql keywords and add pg keywords, and then implement the keywords logic functions in TiDB4PG project.
The things you need to do are :
- spot statements in parser.y file
- remove mysql keywords of the statement
- make sure build successfully
- correct related unit tests
- commit PR
Helpful reference: Understand Delete Statement - Chinese
Task List
DCParser:
- [x] Delete Statement:
- remove mysql keywords
- correct unit tests
- [ ] Select Statement Parser
- remove mysql keywords
- correct unit tests
- [ ] Insert Statement Parser
- remove mysql keywords
- correct unit tests
- [ ] Update Statement Parser
- remove mysql keywords
- correct unit tests
TiDB4PG:
Please check the issue https://github.com/DigitalChinaOpenSource/TiDB-for-PostgreSQL/issues/40
At present, we will not delete MySQL syntax unless it conflicts with PgSQL syntax.