summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/psql/qsql_psql.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
commit41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch)
tree6d4d5407c000add30aa78630e009c0e5d633e440 /src/sql/drivers/psql/qsql_psql.cpp
parent1740cd279522c060e738bbbffacab83355d2b794 (diff)
downloadtqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz
tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip
Automated conversion from qt3
Diffstat (limited to 'src/sql/drivers/psql/qsql_psql.cpp')
-rw-r--r--src/sql/drivers/psql/qsql_psql.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/sql/drivers/psql/qsql_psql.cpp b/src/sql/drivers/psql/qsql_psql.cpp
index b039a2474..033c69f35 100644
--- a/src/sql/drivers/psql/qsql_psql.cpp
+++ b/src/sql/drivers/psql/qsql_psql.cpp
@@ -64,8 +64,8 @@
# undef open
#endif
-TQPtrDict<TQSqlDriverExtension> *qSqlDriverExtDict();
-TQPtrDict<TQSqlOpenExtension> *qSqlOpenExtDict();
+TQPtrDict<TQSqlDriverExtension> *tqSqlDriverExtDict();
+TQPtrDict<TQSqlOpenExtension> *tqSqlOpenExtDict();
class TQPSQLPrivate
{
@@ -272,7 +272,7 @@ static TQPoint pointFromString( const TQString& s)
TQVariant TQPSQLResult::data( int i )
{
if ( i >= PQnfields( d->result ) ) {
- qWarning( "TQPSQLResult::data: column %d out of range", i );
+ tqWarning( "TQPSQLResult::data: column %d out of range", i );
return TQVariant();
}
int ptype = PQftype( d->result, i );
@@ -395,7 +395,7 @@ TQVariant TQPSQLResult::data( int i )
int fd = lo_open( d->connection, oid, INV_READ );
#ifdef QT_CHECK_RANGE
if ( fd < 0) {
- qWarning( "TQPSQLResult::data: unable to open large object for read" );
+ tqWarning( "TQPSQLResult::data: unable to open large object for read" );
((TQSqlDriver*)driver())->commitTransaction();
return TQVariant( ba );
}
@@ -429,7 +429,7 @@ TQVariant TQPSQLResult::data( int i )
#endif
if (retval < 0) {
- qWarning( "TQPSQLResult::data: unable to read large object" );
+ tqWarning( "TQPSQLResult::data: unable to read large object" );
} else {
ba.duplicate( buf, size );
}
@@ -441,7 +441,7 @@ TQVariant TQPSQLResult::data( int i )
default:
case TQVariant::Invalid:
#ifdef QT_CHECK_RANGE
- qWarning("TQPSQLResult::data: unknown data type");
+ tqWarning("TQPSQLResult::data: unknown data type");
#endif
;
}
@@ -512,7 +512,7 @@ static void setDatestyle( PGconn* connection )
#ifdef QT_CHECK_RANGE
int status = PQresultStatus( result );
if ( status != PGRES_COMMAND_OK )
- qWarning( "%s", PQerrorMessage( connection ) );
+ tqWarning( "%s", PQerrorMessage( connection ) );
#endif
PQclear( result );
}
@@ -531,7 +531,7 @@ static TQPSQLDriver::Protocol getPSQLVersion( PGconn* connection )
int vMin = rx.cap( 2 ).toInt();
if ( vMaj < 6 ) {
#ifdef QT_CHECK_RANGE
- qWarning( "This version of PostgreSQL is not supported and may not work." );
+ tqWarning( "This version of PostgreSQL is not supported and may not work." );
#endif
return TQPSQLDriver::Version6;
}
@@ -547,7 +547,7 @@ static TQPSQLDriver::Protocol getPSQLVersion( PGconn* connection )
}
} else {
#ifdef QT_CHECK_RANGE
- qWarning( "This version of PostgreSQL is not supported and may not work." );
+ tqWarning( "This version of PostgreSQL is not supported and may not work." );
#endif
}
@@ -574,8 +574,8 @@ TQPSQLDriver::TQPSQLDriver( PGconn * conn, TQObject * parent, const char * name
void TQPSQLDriver::init()
{
- qSqlDriverExtDict()->insert( this, new TQPSQLDriverExtension(this) );
- qSqlOpenExtDict()->insert( this, new TQPSQLOpenExtension(this) );
+ tqSqlDriverExtDict()->insert( this, new TQPSQLDriverExtension(this) );
+ tqSqlOpenExtDict()->insert( this, new TQPSQLOpenExtension(this) );
d = new TQPSQLPrivate();
}
@@ -585,12 +585,12 @@ TQPSQLDriver::~TQPSQLDriver()
if ( d->connection )
PQfinish( d->connection );
delete d;
- if ( !qSqlDriverExtDict()->isEmpty() ) {
- TQSqlDriverExtension *ext = qSqlDriverExtDict()->take( this );
+ if ( !tqSqlDriverExtDict()->isEmpty() ) {
+ TQSqlDriverExtension *ext = tqSqlDriverExtDict()->take( this );
delete ext;
}
- if ( !qSqlOpenExtDict()->isEmpty() ) {
- TQSqlOpenExtension *ext = qSqlOpenExtDict()->take( this );
+ if ( !tqSqlOpenExtDict()->isEmpty() ) {
+ TQSqlOpenExtension *ext = tqSqlOpenExtDict()->take( this );
delete ext;
}
}
@@ -623,7 +623,7 @@ bool TQPSQLDriver::open( const TQString&,
const TQString&,
int )
{
- qWarning("TQPSQLDriver::open(): This version of open() is no longer supported." );
+ tqWarning("TQPSQLDriver::open(): This version of open() is no longer supported." );
return FALSE;
}
@@ -688,7 +688,7 @@ bool TQPSQLDriver::beginTransaction()
{
if ( !isOpen() ) {
#ifdef QT_CHECK_RANGE
- qWarning( "TQPSQLDriver::beginTransaction: Database not open" );
+ tqWarning( "TQPSQLDriver::beginTransaction: Database not open" );
#endif
return FALSE;
}
@@ -706,7 +706,7 @@ bool TQPSQLDriver::commitTransaction()
{
if ( !isOpen() ) {
#ifdef QT_CHECK_RANGE
- qWarning( "TQPSQLDriver::commitTransaction: Database not open" );
+ tqWarning( "TQPSQLDriver::commitTransaction: Database not open" );
#endif
return FALSE;
}
@@ -724,7 +724,7 @@ bool TQPSQLDriver::rollbackTransaction()
{
if ( !isOpen() ) {
#ifdef QT_CHECK_RANGE
- qWarning( "TQPSQLDriver::rollbackTransaction: Database not open" );
+ tqWarning( "TQPSQLDriver::rollbackTransaction: Database not open" );
#endif
return FALSE;
}