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

Support for year(2) #1234

Open
jdsada30 opened this issue May 28, 2021 · 1 comment
Open

Support for year(2) #1234

jdsada30 opened this issue May 28, 2021 · 1 comment

Comments

@jdsada30
Copy link

jdsada30 commented May 28, 2021

Bug Report

  1. What did you do?

Attempted to parse the following query

CREATE TABLE t (y2 YEAR(2), y4 YEAR);

Query comes from MySQL documentation , found this executing queries from GitHub project verdict-project .

  1. What did you expect to see?

I expected this query and others with year(2) to parse correctly, as they are supported by MySQL.

  1. What did you see instead?
    The following parse error:

parse error: [parser:1818]Supports only YEAR or YEAR(4) column

I am not sure whether this feature is deliberately not supported.

@morgo
Copy link
Contributor

morgo commented Aug 2, 2021

@jdsada30 YEAR(2) was removed from MySQL 8.0. Some of its behaviors are quite strange, which makes it not recommended for use.

Typically we do not implement features when they are deprecated/removed in MySQL, but we are open to feedback if you can demonstrate a compatibility requirement such as a popular application or framework depending on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants