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

Include "TRUE" string in SerializationHelper::convert_boolean #57

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jamuc
Copy link

@jamuc jamuc commented Oct 25, 2013

I'm currently testing H2 to MySQL migration. Works fine, except the boolean values are all false when migrating from H2 to MySQL.
The reason is simple. H2 databases write boolean values as strings with capital letters (e.g "TRUE").

Adding the "TRUE" String to the ::convert_boolean method fixes this problem.

Signed-off-by: Jason Franklin [email protected]

Serialization helper converts ruby strings TRUE and FALSE to true and false.
@nubbel
Copy link

nubbel commented Apr 13, 2015

This is still relevant for us. I updated the PR to move the change to the new location of the serialization_helper.rb and created a spec.

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.

2 participants