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

db_mysql truncates binary strings at null bytes #14

Open
pgkos opened this issue Jun 2, 2017 · 1 comment
Open

db_mysql truncates binary strings at null bytes #14

pgkos opened this issue Jun 2, 2017 · 1 comment

Comments

@pgkos
Copy link
Contributor

pgkos commented Jun 2, 2017

Simple example:

import db_mysql

let db = open("host", "user", "password", "dbname")
let row = db.getRow(sql"SELECT x'010002'")
db.close()

assert row[0] == "\x01\x00\x02"  # fails, row[0] == "\x01"
@stale
Copy link

stale bot commented Aug 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. If you think it is still a valid issue, write a comment below; otherwise it will be closed. Thank you for your contributions.

@ringabout ringabout transferred this issue from nim-lang/Nim Dec 8, 2022
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