Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SQL_TSI_* syntax #480

Closed
tangenta opened this issue Aug 14, 2019 · 1 comment · Fixed by #495
Closed

Fix SQL_TSI_* syntax #480

tangenta opened this issue Aug 14, 2019 · 1 comment · Fixed by #495

Comments

@tangenta
Copy link
Contributor

Index Issue: pingcap/tidb#11486

These are bad (incompatible) SQL cases:

create table t (a sql_tsi_year)
select date_add('2019-08-14', interval 1 sql_tsi_quarter);
select date_add('2019-08-14', interval 1 sql_tsi_month);
select date_add('2019-08-14', interval 1 sql_tsi_week);
select date_add('2019-08-14', interval 1 sql_tsi_day);
select date_add('2019-08-14', interval 1 sql_tsi_hour);
select date_add('2019-08-14', interval 1 sql_tsi_minuate);
select date_add('2019-08-14', interval 1 sql_tsi_second);

Claim this subtask based on the comments below this issue.

@ichn-hu
Copy link
Contributor

ichn-hu commented Aug 16, 2019

Let me fix it

ichn-hu added a commit to ichn-hu/parser that referenced this issue Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants