|
|
|
@ -269,9 +269,10 @@ bool SqlTables::newTables( const TQString & username, const TQString & password,
|
|
|
|
|
TQSqlDatabase::removeDatabase( database );
|
|
|
|
|
KMessageBox::information( 0, i18n("Created table ")+database+i18n(" successfully!") );
|
|
|
|
|
} else {
|
|
|
|
|
TQSqlError dbError = dbase->lastError();
|
|
|
|
|
dbase->close();
|
|
|
|
|
TQSqlDatabase::removeDatabase(drivers[driver]->initdb( database ));
|
|
|
|
|
KMessageBox::sorry( 0, i18n("Can't connect to database.") );
|
|
|
|
|
KMessageBox::sorry(0, i18n("Can't connect to database.") + "\n" + dbError.driverText() + "\n" + dbError.databaseText());
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|