summaryrefslogtreecommitdiffstats
path: root/src/sql/qsqlquery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/qsqlquery.cpp')
-rw-r--r--src/sql/qsqlquery.cpp28
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