Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.1, 4.8.5, 5.2.1, 5.3.0 Beta1
-
None
-
Qt 5: d5ff16bc8ebf0f17fae3a28f08018db26567e81c (stable,3.4.2014, 5.3) Qt 4: 1ff6efe5ce1f0687d1ce44dcaa281fcbdfb90044 (4.8, 7.4.2014. 4.8.7)
Description
SQL ODBC driver: in the exec() function, in the section updating bound variables for QSql::Out variables, the handling for QVariant::String has a bug. In the case of unicode, it only removes an entry from tmpStorage if it was an out parameter. However, during the initial binding of parameters, an entry is added to tmpStorage regardless of parameter type.
The result of this is that results of higher-index parameters can be returned to the wrong bound variable.