diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
commit | 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch) | |
tree | 6d4d5407c000add30aa78630e009c0e5d633e440 /src/sql/qsqlquery.cpp | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
Diffstat (limited to 'src/sql/qsqlquery.cpp')
-rw-r--r-- | src/sql/qsqlquery.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/sql/qsqlquery.cpp b/src/sql/qsqlquery.cpp index 94325d507..ac4631b1a 100644 --- a/src/sql/qsqlquery.cpp +++ b/src/sql/qsqlquery.cpp @@ -353,7 +353,7 @@ bool TQSqlQuery::exec ( const TQString& query ) d->sqlResult->setAt( TQSql::BeforeFirst ); if ( !driver() ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::exec: no driver" ); + tqWarning("TQSqlQuery::exec: no driver" ); #endif return FALSE; } @@ -363,18 +363,18 @@ bool TQSqlQuery::exec ( const TQString& query ) d->executedQuery = d->sqlResult->lastQuery(); if ( !driver()->isOpen() || driver()->isOpenError() ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::exec: database not open" ); + tqWarning("TQSqlQuery::exec: database not open" ); #endif return FALSE; } if ( query.isNull() || query.length() == 0 ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::exec: empty query" ); + tqWarning("TQSqlQuery::exec: empty query" ); #endif return FALSE; } #ifdef QT_DEBUG_SQL - qDebug( "\n TQSqlQuery: " + query ); + tqDebug( "\n TQSqlQuery: " + query ); #endif return d->sqlResult->reset( query ); } @@ -403,7 +403,7 @@ TQVariant TQSqlQuery::value( int i ) const return d->sqlResult->data( i ); } else { #ifdef QT_CHECK_RANGE - qWarning( "TQSqlQuery::value: not positioned on a valid record" ); + tqWarning( "TQSqlQuery::value: not positioned on a valid record" ); #endif } return TQVariant(); @@ -544,7 +544,7 @@ bool TQSqlQuery::seek( int i, bool relative ) // let drivers optimize if ( isForwardOnly() && actualIdx < at() ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::seek: cannot seek backwards in a forward only query" ); + tqWarning("TQSqlQuery::seek: cannot seek backwards in a forward only query" ); #endif afterSeek(); return FALSE; @@ -661,7 +661,7 @@ bool TQSqlQuery::prev() return FALSE; if ( isForwardOnly() ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::seek: cannot seek backwards in a forward only query" ); + tqWarning("TQSqlQuery::seek: cannot seek backwards in a forward only query" ); #endif return FALSE; } @@ -705,7 +705,7 @@ bool TQSqlQuery::first() return FALSE; if ( isForwardOnly() && at() > TQSql::BeforeFirst ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::seek: cannot seek backwards in a forward only query" ); + tqWarning("TQSqlQuery::seek: cannot seek backwards in a forward only query" ); #endif return FALSE; } @@ -937,7 +937,7 @@ bool TQSqlQuery::prepare( const TQString& query ) d->sqlResult->extension()->clear(); if ( !driver() ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::prepare: no driver" ); + tqWarning("TQSqlQuery::prepare: no driver" ); #endif return FALSE; } @@ -946,18 +946,18 @@ bool TQSqlQuery::prepare( const TQString& query ) d->sqlResult->setQuery( query.stripWhiteSpace() ); if ( !driver()->isOpen() || driver()->isOpenError() ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::prepare: database not open" ); + tqWarning("TQSqlQuery::prepare: database not open" ); #endif return FALSE; } if ( query.isNull() || query.length() == 0 ) { #ifdef QT_CHECK_RANGE - qWarning("TQSqlQuery::prepare: empty query" ); + tqWarning("TQSqlQuery::prepare: empty query" ); #endif return FALSE; } #ifdef QT_DEBUG_SQL - qDebug( "\n TQSqlQuery: " + query ); + tqDebug( "\n TQSqlQuery: " + query ); #endif TQString q = query; TQRegExp rx(TQString::fromLatin1("'[^']*'|:([a-zA-Z0-9_]+)")); @@ -1176,7 +1176,7 @@ TQVariant TQSqlQuery::boundValue( int pos ) const TQMap<TQString, TQVariant>::ConstIterator it; TQMap<TQString, TQVariant> vals = query.boundValues(); for ( it = vals.begin(); it != vals.end(); ++it ) - qWarning( "Placeholder: " + it.key() + ", Value: " + (*it).toString() ); + tqWarning( "Placeholder: " + it.key() + ", Value: " + (*it).toString() ); ... // Examine the bound values - bound using positional binding @@ -1184,7 +1184,7 @@ TQVariant TQSqlQuery::boundValue( int pos ) const TQValueList<TQVariant> list = query.boundValues().values(); int i = 0; for ( it = list.begin(); it != list.end(); ++it ) - qWarning( "Placeholder pos: %d, Value: " + (*it).toString(), i++ ); + tqWarning( "Placeholder pos: %d, Value: " + (*it).toString(), i++ ); ... \endcode |