@ -73,11 +73,11 @@ class SQLiteDescription : public SqlDescription {
SqlTables : : SqlTables ( TQObject * parent )
: TQObject ( parent , " sqltables " )
{
drivers . insert ( " T QMYSQL3" , new MySqlDescription ( ) ) ;
drivers . insert ( " T QPSQL7" , new PostgreSQLDescription ( ) ) ;
drivers . insert ( " QMYSQL3" , new MySqlDescription ( ) ) ;
drivers . insert ( " QPSQL7" , new PostgreSQLDescription ( ) ) ;
/* The same driver plugin is used for TQDBC and SQLite */
drivers . insert ( " T QSQLITE" , new SQLiteDescription ( ) ) ;
drivers . insert ( " T QODBC3" , new SQLiteDescription ( ) ) ;
drivers . insert ( " QSQLITE" , new SQLiteDescription ( ) ) ;
drivers . insert ( " QODBC3" , new SQLiteDescription ( ) ) ;
db = NULL ;
connected = false ;
@ -152,7 +152,7 @@ bool SqlTables::newTables( const TQString & username, const TQString & password,
if ( dbase - > open ( ) ) {
if ( driver ! = " T QSQLITE" )
if ( driver ! = " QSQLITE" )
{
bool found = false ;
TQSqlQuery existing ( " SHOW DATABASES LIKE ' " + database + " '; " ) ;
@ -349,7 +349,7 @@ void SqlTables::loadConfig()
sqldata . password = config - > readEntry ( " password " , " " ) ;
sqldata . hostname = config - > readEntry ( " hostname " , " localhost " ) ;
sqldata . database = config - > readEntry ( " database " , " kbarcode " ) ;
sqldata . driver = config - > readEntry ( " driver " , " T QMYSQL3" ) ;
sqldata . driver = config - > readEntry ( " driver " , " QMYSQL3" ) ;
sqldata . autoconnect = config - > readBoolEntry ( " autoconnect " , false ) ;
}
@ -376,7 +376,7 @@ void SqlTables::updateTables()
* as they have already been created with the most
* recent database structures .
*/
if ( sqldata . driver ! = " T QMYSQL3" )
if ( sqldata . driver ! = " QMYSQL3" )
return ;
bool changed = false ;