Skip to content

Conversation

@tomershay
Copy link
Contributor

@tomershay tomershay commented Nov 19, 2019

The following wasn't supported by the parser this far, because of the "AS SIGNED" expression:
SELECT CAST(contact_id AS SIGNED) FROM contact WHERE contact_id = 20;

Similar expressions like AS SIGNED INTEGER are supported, but the parser expects a data type after the SIGNED keyword, which isn't mandatory according to the docs.

More examples can be seen in the documentation (search for "as SIGNED"):
https://dev.mysql.com/doc/refman/8.0/en/cast-functions.html

@coveralls
Copy link

Coverage Status

Coverage remained the same at 83.508% when pulling 51d41d7 on tomershay:support_cast_to_signed into 596e631 on JSQLParser:master.

@wumpz wumpz merged commit 73b3d44 into JSQLParser:master Nov 20, 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 this pull request may close these issues.

3 participants