summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/odbc
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-10-19 04:45:47 (GMT)
committerBill King <bill.king@nokia.com>2009-10-19 04:45:47 (GMT)
commitc3bab81d5966c9bd3a42d9c5cbb9d8ad35a1b330 (patch)
tree2037e6f3ab8061199e1ce873d60eb9c73b0fd490 /src/sql/drivers/odbc
parent1433a2c8682cb1c8f89ceaf97ad7a509ac686879 (diff)
downloadQt-c3bab81d5966c9bd3a42d9c5cbb9d8ad35a1b330.zip
Qt-c3bab81d5966c9bd3a42d9c5cbb9d8ad35a1b330.tar.gz
Qt-c3bab81d5966c9bd3a42d9c5cbb9d8ad35a1b330.tar.bz2
ODBC: Retrieved in ascii, should be stored in ascii.
For non-unicode databases, use ascii. Task-number: QTBUG-3736
Diffstat (limited to 'src/sql/drivers/odbc')
-rw-r--r--src/sql/drivers/odbc/qsql_odbc.cpp2
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 ff9458b..e686873 100644
--- a/src/sql/drivers/odbc/qsql_odbc.cpp
+++ b/src/sql/drivers/odbc/qsql_odbc.cpp
@@ -1455,7 +1455,7 @@ bool QODBCResult::exec()
else
#endif
{
- QByteArray str = val.toString().toUtf8();
+ QByteArray str = val.toString().toAscii();
if (*ind != SQL_NULL_DATA)
*ind = str.length();
int strSize = str.length();