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

postgres types int4, float8 are not supported #32

Open
yaitskov opened this issue Jun 21, 2021 · 1 comment
Open

postgres types int4, float8 are not supported #32

yaitskov opened this issue Jun 21, 2021 · 1 comment

Comments

@yaitskov
Copy link

Hi,

parseStatement v0.6.0 fails for

SELECT  CAST(42 AS int4) from t;
SELECT  CAST(42 AS float8) from t;

but float8 is a valid type in postgres 9.5
https://www.postgresql.org/docs/9.5/datatype.html

@JakeWheat
Copy link
Owner

Thanks for the report, I would be happy to merge a pull request.
I didn't check the code, but it shouldn't even restrict the type name in a cast expression to known types, since you should also be able to cast to user defined types which have arbitrary names.

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