summaryrefslogtreecommitdiffstats
path: root/src/sql/qsqlmanager_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/qsqlmanager_p.cpp')
-rw-r--r--src/sql/qsqlmanager_p.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sql/qsqlmanager_p.cpp b/src/sql/qsqlmanager_p.cpp
index c7c3ec3c5..563406772 100644
--- a/src/sql/qsqlmanager_p.cpp
+++ b/src/sql/qsqlmanager_p.cpp
@@ -307,10 +307,10 @@ static int compare_recs( const TQSqlRecord* buf1, const TQSqlRecord* buf2,
#ifdef QT_DEBUG_DATAMANAGER
static void debug_datamanager_buffer( const TQString& msg, TQSqlRecord* cursor )
{
- qDebug("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
- qDebug( "%s", msg.latin1() );
+ tqDebug("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
+ tqDebug( "%s", msg.latin1() );
for ( uint j = 0; j < cursor->count(); ++j ) {
- qDebug( "%s", (cursor->field(j)->name() + " type:"
+ tqDebug( "%s", (cursor->field(j)->name() + " type:"
+ TQString(cursor->field(j)->value().typeName())
+ " value:" + cursor->field(j)->value().toString())
.latin1() );
@@ -348,7 +348,7 @@ update. For example:
bool TQSqlCursorManager::findBuffer( const TQSqlIndex& idx, int atHint )
{
#ifdef QT_DEBUG_DATAMANAGER
- qDebug("TQSqlCursorManager::findBuffer:");
+ tqDebug("TQSqlCursorManager::findBuffer:");
#endif
TQSqlCursor* cur = cursor();
if ( !cur )
@@ -363,7 +363,7 @@ bool TQSqlCursorManager::findBuffer( const TQSqlIndex& idx, int atHint )
TQSqlRecord* buf = cur->editBuffer();
bool indexEquals = FALSE;
#ifdef QT_DEBUG_DATAMANAGER
- qDebug(" Checking hint...");
+ tqDebug(" Checking hint...");
#endif
/* check the hint */
if ( cur->seek( atHint ) )
@@ -371,7 +371,7 @@ bool TQSqlCursorManager::findBuffer( const TQSqlIndex& idx, int atHint )
if ( !indexEquals ) {
#ifdef QT_DEBUG_DATAMANAGER
- qDebug(" Checking current page...");
+ tqDebug(" Checking current page...");
#endif
/* check current page */
int pageSize = 20;
@@ -389,7 +389,7 @@ bool TQSqlCursorManager::findBuffer( const TQSqlIndex& idx, int atHint )
if ( !indexEquals && cur->driver()->hasFeature( TQSqlDriver::QuerySize )
&& cur->sort().count() ) {
#ifdef QT_DEBUG_DATAMANAGER
- qDebug(" Using binary search...");
+ tqDebug(" Using binary search...");
#endif
// binary search based on record buffer and current sort fields
int lo = 0;
@@ -442,7 +442,7 @@ bool TQSqlCursorManager::findBuffer( const TQSqlIndex& idx, int atHint )
if ( !indexEquals ) {
#ifdef QT_DEBUG_DATAMANAGER
- qDebug(" Using brute search...");
+ tqDebug(" Using brute search...");
#endif
#ifndef QT_NO_CURSOR
TQApplication::setOverrideCursor( TQt::waitCursor );
@@ -465,7 +465,7 @@ bool TQSqlCursorManager::findBuffer( const TQSqlIndex& idx, int atHint )
#endif
}
#ifdef QT_DEBUG_DATAMANAGER
- qDebug(" Done, result:" + TQString::number( indexEquals ) );
+ tqDebug(" Done, result:" + TQString::number( indexEquals ) );
#endif
return indexEquals;
}