Skip to content

Fix client prepare with string parameter#412

Open
kaiwangchen wants to merge 2 commits into
akopytov:masterfrom
kaiwangchen:fix_ps
Open

Fix client prepare with string parameter#412
kaiwangchen wants to merge 2 commits into
akopytov:masterfrom
kaiwangchen:fix_ps

Conversation

@kaiwangchen
Copy link
Copy Markdown

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