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

String cast generates invalid SQL using EclipseLink and MySQL #1106

Closed
nicky9door opened this issue Dec 22, 2014 · 0 comments
Closed

String cast generates invalid SQL using EclipseLink and MySQL #1106

nicky9door opened this issue Dec 22, 2014 · 0 comments
Labels
bug
Milestone

Comments

@nicky9door
Copy link

@nicky9door nicky9door commented Dec 22, 2014

Eclipselink uses the template 'cast({0} varchar(255))' for the STRING_CAST function. This does not work when the underlying database is MySQL. MySQL uses the type 'char' rather than 'varchar'. The correct template in this situation would be 'cast({0} char(255))'.

@timowest timowest added the bug label Dec 23, 2014
@timowest timowest added this to the 4.0.0 milestone Feb 7, 2015
@timowest timowest added the progress label Feb 7, 2015
@timowest timowest removed the progress label Mar 13, 2015
@timowest timowest modified the milestones: 3.6.2, 4.0.0 Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.