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

Add support for bit(1) reading #68

Open
girng opened this issue Dec 31, 2018 · 0 comments
Open

Add support for bit(1) reading #68

girng opened this issue Dec 31, 2018 · 0 comments

Comments

@girng
Copy link

girng commented Dec 31, 2018

Was reading over #12 but am not sure if it's related :P

I have a bit(1) field in MYSQL called hardcore:

The query_all:
db.query_all "select hardcore from rpg_characters where user_id = ? ", client.user_id, as: {Bool}

The error:
not supported read

I've tried UInt8, Int8, and BitArray.new(1) with no prevail. I'm not sure if this is a suggestion (if it can be done already, then please close). But figured I'd make an issue to shed some light on it. Thanks for reading

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

1 participant