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

Parsing fails for GENERATED ALWAYS AS expressions that use a cast #198

Closed
bholzer opened this issue May 23, 2023 · 1 comment
Closed

Parsing fails for GENERATED ALWAYS AS expressions that use a cast #198

bholzer opened this issue May 23, 2023 · 1 comment
Assignees

Comments

@bholzer
Copy link

bholzer commented May 23, 2023

Minimal example:

CREATE TABLE test (
  timestamp TIMESTAMP,
  date DATE GENERATED ALWAYS AS (CAST(timestamp AS DATE))
)

Trying to dig into the code to see if I can issue a PR for this myself.

@xnuinside xnuinside self-assigned this May 9, 2024
@xnuinside
Copy link
Owner

xnuinside commented May 9, 2024

Hi! I'm not sure why I ignore this issues, sorry for that! @bholzer thank you for opening it and support for CAST added in version 1.2.1, test added - https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/dialects/test_psql.py#L45. If will be any other issues, feel free to open new one and thank you again!

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

No branches or pull requests

2 participants