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

Fix client prepare with string parameter #412

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

Conversation

kaiwangchen
Copy link

Client prepare would complain because string-typed bind value is not C string:

FATAL: mysql_drv_query() returned error 1406 (Data too long for column 'a' at row 1) for query 'insert into t (a) values ('12345678k')'
FATAL: x.lua:13: SQL error, errno = 1406, state = '22001': Data too long for column 'a' at row 1

P.S. Not sure about the pgsql tests because they were skipped.

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