diff options
author | Derick Hawcroft <derick.hawcroft@nokia.com> | 2009-06-30 22:49:22 (GMT) |
---|---|---|
committer | Derick Hawcroft <derick.hawcroft@nokia.com> | 2009-06-30 22:54:42 (GMT) |
commit | b2d61c982e860a532f931dfaea143749927784a6 (patch) | |
tree | d292ecd470b29657d037c9acb66b017aa5ad6260 | |
parent | cd796aa6dcdf83fa50ced56a9885835fda851a09 (diff) | |
download | Qt-b2d61c982e860a532f931dfaea143749927784a6.zip Qt-b2d61c982e860a532f931dfaea143749927784a6.tar.gz Qt-b2d61c982e860a532f931dfaea143749927784a6.tar.bz2 |
Don assume QVariant::String data is going to always be unicode in QODBC
- as was not the case for the psqlODBC driver
Reviewed-by: Bill King
-rw-r--r-- | src/sql/drivers/odbc/qsql_odbc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/drivers/odbc/qsql_odbc.cpp b/src/sql/drivers/odbc/qsql_odbc.cpp index 2bedf7f..e18a9eb 100644 --- a/src/sql/drivers/odbc/qsql_odbc.cpp +++ b/src/sql/drivers/odbc/qsql_odbc.cpp @@ -1006,7 +1006,7 @@ QVariant QODBCResult::data(int field) d->fieldCache[i] = qGetBinaryData(d->hStmt, i); break; case QVariant::String: - d->fieldCache[i] = qGetStringData(d->hStmt, i, info.length(), true); + d->fieldCache[i] = qGetStringData(d->hStmt, i, info.length(), d->unicode); break; case QVariant::Double: { |