QTBUG-1363: fix QSqlField.length() for ODBC
authorMark Brand <mabrand@mabrand.nl>
Thu, 12 Apr 2012 10:49:03 +0000 (12:49 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 13 Apr 2012 19:26:07 +0000 (21:26 +0200)
commitcf52540dfbf320e3d5cb9f7546542233c170af80
tree557c2ba7a4920c1b36ef6a9340bd48b38e354d10
parent13ebff81d034579c3686aa1e1f6aa1f8a0dfcb93
QTBUG-1363: fix QSqlField.length() for ODBC

Applied Bill King's suggestion in QTBUG-1363. Columns of
hStmt must be accessed in order.

Verified using ODBC driver on SQL Server 2005 on Windows 7.

Added test for length of text field for MS SQL Server over ODBC.

Task-Id: QTBUG-1363
Change-Id: I6673dafe75e3ef394d41e439adb45096c1421068
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
src/sql/drivers/odbc/qsql_odbc.cpp
tests/auto/sql/kernel/qsqldriver/tst_qsqldriver.cpp