qt5base-lts/tests/auto/sql/kernel
Mark Brand 593b8f7f0b fix binding of bool type in mysql driver
MYSQL_TYPE_TINY should be used for binding bool input value.
MYSQL_TYPE_LONG might be too big for bool, resulting in bools being
saved in the database as int 127. The problem was not specific to
the vendor's BOOL column type.

http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html
http://dev.mysql.com/doc/refman/5.0/en/c-api-prepared-statement-type-codes.html

Added generic autotest to make sure that binding bool works. All
drivers should pass this test.

Task-number: QTBUG-27763
Change-Id: I4e69f8e3b32fffb702ec9fa8a80ff5c50dea954b
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
2012-11-09 00:37:42 +01:00
..
qsql Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqldatabase normalise signal/slot signatures [QtSql tests] 2012-10-19 13:02:17 +02:00
qsqldriver Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqlerror Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqlfield Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqlquery fix binding of bool type in mysql driver 2012-11-09 00:37:42 +01:00
qsqlrecord Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqlthread Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
kernel.pro Fix tst_qsql crashes on Mac OS X 2011-12-02 17:35:11 +01:00