23 lines
1 KiB
Text
23 lines
1 KiB
Text
$NetBSD: patch-cc,v 1.2 2009/07/11 09:11:13 rillig Exp $
|
|
|
|
--- src/sql/qsqldatabase.cpp Mon Jul 16 10:45:03 CEST 2007
|
|
+++ src/sql/qsqldatabase.cpp Mon Jul 16 10:45:03 CEST 2007
|
|
@@ -234,7 +234,8 @@
|
|
db->open();
|
|
#ifdef QT_CHECK_RANGE
|
|
if ( !db->isOpen() )
|
|
- qWarning("QSqlDatabaseManager::database: unable to open database: " + db->lastError().databaseText() + ": " + db->lastError().driverText() );
|
|
+ qWarning("QSqlDatabaseManager::database: unable to open database: %s: %s",
|
|
+ db->lastError().databaseText().latin1(), db->lastError().driverText().latin1() );
|
|
#endif
|
|
}
|
|
return db;
|
|
@@ -686,7 +687,7 @@
|
|
if ( !d->driver ) {
|
|
#ifdef QT_CHECK_RANGE
|
|
qWarning( "QSqlDatabase: %s driver not loaded", type.latin1() );
|
|
- qWarning( "QSqlDatabase: available drivers: " + drivers().join(" ") );
|
|
+ qWarning( "QSqlDatabase: available drivers: %s", drivers().join(" ").latin1() );
|
|
#endif
|
|
d->driver = new QNullDriver();
|
|
d->driver->setLastError( QSqlError( "Driver not loaded", "Driver not loaded" ) );
|