summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-02 16:32:26 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-05 16:56:23 +0200
commit8f32994b508bf9b59d8446c3025795acd0337ef1 (patch)
tree28d567b6a2e6eeebdcf3e3fa330123d9b7571f9e /tests
parentec360d7ad90945273c7d96c9a159131dcbcd67c3 (diff)
Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtSql]
This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: Icb3ab0e1f4f3173563f3de36115b5457cf1ba856 Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
index 4a0eab0f83..f5cc8d3b02 100644
--- a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
+++ b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
@@ -2712,11 +2712,11 @@ void tst_QSqlQuery::blobsPreparedQuery()
QVERIFY_SQL( q, exec( QString( "CREATE TABLE %1(id INTEGER, data %2)" ).arg( tableName ).arg( typeName ) ) );
q.prepare( QString( "INSERT INTO %1(id, data) VALUES(:id, :data)" ).arg( tableName ) );
q.bindValue( ":id", 1 );
- q.bindValue( ":data", shortBLOB.toAscii() );
+ q.bindValue( ":data", shortBLOB.toLatin1() );
QVERIFY_SQL( q, exec() );
q.bindValue( ":id", 2 );
- q.bindValue( ":data", longerBLOB.toAscii() );
+ q.bindValue( ":data", longerBLOB.toLatin1() );
QVERIFY_SQL( q, exec() );
// Two executions and result sets