Skip to content

Conversation

Leonidas-from-XIV
Copy link

Closes #12.

@ygrek
Copy link
Owner

ygrek commented Nov 12, 2019

I believe this error is not for number of rows, but for the size of resulting columns.
See https://dev.mysql.com/doc/refman/5.7/en/mysql-stmt-fetch.html

MYSQL_DATA_TRUNCATED is returned when truncation reporting is enabled. To determine which column values were truncated when this value is returned, check the error members of the MYSQL_BIND structures used for fetching values. Truncation reporting is enabled by default, but can be controlled by calling mysql_options() with the MYSQL_REPORT_DATA_TRUNCATION option.

But now we cannot fail the query (because compatibility) but should introduce one more function or carry some flag?

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.

Setting MAX_EXECUTION_TIME returns fewer results but no error

2 participants