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

Features/boolean domain #14

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

choallin
Copy link

@choallin choallin commented Aug 26, 2019

This PR solves issue #12 and makes it possible for the user of the gem to use a self defined boolean domain.

E.g. if the user uses a domain with 'F' and 'T' for false and true he can add this

ActiveRecord::ConnectionAdapters::FirebirdAdapter.boolean_domain = { :true => 'T', :false => 'F', :name => 'GMS_BOOLEAN', :type => 'char' , limit: 1}

in a initializer and the adapter will map true to 'T' and false to 'F' in the queries.

I think for a better history this PR should be merged as 1 big committ.

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.

1 participant