diff options
author | Timothy Pearson <[email protected]> | 2012-02-28 22:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-02-28 22:31:39 -0600 |
commit | 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch) | |
tree | 6d4d5407c000add30aa78630e009c0e5d633e440 /src/sql/drivers/mysql | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
Diffstat (limited to 'src/sql/drivers/mysql')
-rw-r--r-- | src/sql/drivers/mysql/qsql_mysql.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/sql/drivers/mysql/qsql_mysql.cpp b/src/sql/drivers/mysql/qsql_mysql.cpp index d34e58500..aca83545f 100644 --- a/src/sql/drivers/mysql/qsql_mysql.cpp +++ b/src/sql/drivers/mysql/qsql_mysql.cpp @@ -53,7 +53,7 @@ # define Q_NO_MYSQL_EMBEDDED #endif -TQPtrDict<TQSqlOpenExtension> *qSqlOpenExtDict(); +TQPtrDict<TQSqlOpenExtension> *tqSqlOpenExtDict(); static int qMySqlConnectionCount = 0; static bool qMySqlInitHandledByUser = FALSE; @@ -237,7 +237,7 @@ bool TQMYSQLResult::fetchFirst() TQVariant TQMYSQLResult::data( int field ) { if ( !isSelect() || field >= (int) d->fieldTypes.count() ) { - qWarning( "TQMYSQLResult::data: column %d out of range", field ); + tqWarning( "TQMYSQLResult::data: column %d out of range", field ); return TQVariant(); } @@ -284,7 +284,7 @@ TQVariant TQMYSQLResult::data( int field ) return TQVariant( val ); } #ifdef QT_CHECK_RANGE - qWarning("TQMYSQLResult::data: unknown data type"); + tqWarning("TQMYSQLResult::data: unknown data type"); #endif return TQVariant(); } @@ -368,7 +368,7 @@ static void qServerInit() // but is vital for the embedded lib if ( mysql_server_init( 0, 0, 0 ) ) { # ifdef QT_CHECK_RANGE - qWarning( "TQMYSQLDriver::qServerInit: unable to start server." ); + tqWarning( "TQMYSQLDriver::qServerInit: unable to start server." ); # endif } @@ -404,7 +404,7 @@ TQMYSQLDriver::TQMYSQLDriver( MYSQL * con, TQObject * parent, const char * name void TQMYSQLDriver::init() { - qSqlOpenExtDict()->insert( this, new TQMYSQLOpenExtension(this) ); + tqSqlOpenExtDict()->insert( this, new TQMYSQLOpenExtension(this) ); d = new TQMYSQLDriverPrivate(); d->mysql = 0; qMySqlConnectionCount++; @@ -417,8 +417,8 @@ TQMYSQLDriver::~TQMYSQLDriver() qServerEnd(); delete d; - if ( !qSqlOpenExtDict()->isEmpty() ) { - TQSqlOpenExtension *ext = qSqlOpenExtDict()->take( this ); + if ( !tqSqlOpenExtDict()->isEmpty() ) { + TQSqlOpenExtension *ext = tqSqlOpenExtDict()->take( this ); delete ext; } } @@ -452,7 +452,7 @@ bool TQMYSQLDriver::open( const TQString&, const TQString&, int ) { - qWarning("TQMYSQLDriver::open(): This version of open() is no longer supported." ); + tqWarning("TQMYSQLDriver::open(): This version of open() is no longer supported." ); return FALSE; } @@ -482,7 +482,7 @@ bool TQMYSQLDriver::open( const TQString& db, if ( val == "TRUE" || val == "1" ) opts << tmp.left( idx ); else - qWarning( "TQMYSQLDriver::open: Illegal connect option value '%s'", tmp.latin1() ); + tqWarning( "TQMYSQLDriver::open: Illegal connect option value '%s'", tmp.latin1() ); } else { opts << tmp; } @@ -505,7 +505,7 @@ bool TQMYSQLDriver::open( const TQString& db, else if ( opt == "CLIENT_SSL" ) optionFlags |= CLIENT_SSL; else - qWarning( "TQMYSQLDriver::open: Unknown connect option '%s'", (*it).latin1() ); + tqWarning( "TQMYSQLDriver::open: Unknown connect option '%s'", (*it).latin1() ); } if ( (d->mysql = mysql_init((MYSQL*) 0)) && @@ -696,7 +696,7 @@ bool TQMYSQLDriver::beginTransaction() #endif if ( !isOpen() ) { #ifdef QT_CHECK_RANGE - qWarning( "TQMYSQLDriver::beginTransaction: Database not open" ); + tqWarning( "TQMYSQLDriver::beginTransaction: Database not open" ); #endif return FALSE; } @@ -714,7 +714,7 @@ bool TQMYSQLDriver::commitTransaction() #endif if ( !isOpen() ) { #ifdef QT_CHECK_RANGE - qWarning( "TQMYSQLDriver::commitTransaction: Database not open" ); + tqWarning( "TQMYSQLDriver::commitTransaction: Database not open" ); #endif return FALSE; } @@ -732,7 +732,7 @@ bool TQMYSQLDriver::rollbackTransaction() #endif if ( !isOpen() ) { #ifdef QT_CHECK_RANGE - qWarning( "TQMYSQLDriver::rollbackTransaction: Database not open" ); + tqWarning( "TQMYSQLDriver::rollbackTransaction: Database not open" ); #endif return FALSE; } |