From 7c9a149f4ce92375b22e16ccfe0b348fc8547f20 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 1 Nov 2018 22:07:23 +0900 Subject: Fixed FTBFS caused by name conflict with new postgres server dev 11 package. Signed-off-by: Michele Calgaro --- src/sql/qsqlextension_p.cpp | 6 +++--- src/sql/qsqlextension_p.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/sql') diff --git a/src/sql/qsqlextension_p.cpp b/src/sql/qsqlextension_p.cpp index 0a032055c..23ca2adc4 100644 --- a/src/sql/qsqlextension_p.cpp +++ b/src/sql/qsqlextension_p.cpp @@ -68,7 +68,7 @@ void TQSqlExtension::bindValue( const TQString& placeholder, const TQVariant& va if ( index.contains( (int)values.count() ) ) { index[ (int)values.count() ] = placeholder; } - values[ placeholder ] = Param( val, tp ); + values[ placeholder ] = TQtParam( val, tp ); } void TQSqlExtension::bindValue( int pos, const TQVariant& val, TQSql::ParameterType tp ) @@ -76,7 +76,7 @@ void TQSqlExtension::bindValue( int pos, const TQVariant& val, TQSql::ParameterT bindm = BindByPosition; index[ pos ] = TQString::number( pos ); TQString nm = TQString::number( pos ); - values[ nm ] = Param( val, tp ); + values[ nm ] = TQtParam( val, tp ); } void TQSqlExtension::addBindValue( const TQVariant& val, TQSql::ParameterType tp ) @@ -130,7 +130,7 @@ TQVariant TQSqlExtension::boundValue( int pos ) const TQMap TQSqlExtension::boundValues() const { - TQMap::ConstIterator it; + TQMap::ConstIterator it; TQMap m; if ( bindm == BindByName ) { for ( it = values.begin(); it != values.end(); ++it ) diff --git a/src/sql/qsqlextension_p.h b/src/sql/qsqlextension_p.h index 5ca2232d5..1e04578b6 100644 --- a/src/sql/qsqlextension_p.h +++ b/src/sql/qsqlextension_p.h @@ -71,11 +71,11 @@ #define TQM_TEMPLATE_EXTERN_SQL Q_TEMPLATE_EXTERN #endif -struct Param { - Param( const TQVariant& v = TQVariant(), TQSql::ParameterType t = TQSql::In ): value( v ), typ( t ) {} +struct TQtParam { + TQtParam( const TQVariant& v = TQVariant(), TQSql::ParameterType t = TQSql::In ): value( v ), typ( t ) {} TQVariant value; TQSql::ParameterType typ; - Q_DUMMY_COMPARISON_OPERATOR(Param) + Q_DUMMY_COMPARISON_OPERATOR(TQtParam) }; struct Holder { @@ -114,7 +114,7 @@ public: int bindCount; TQMap index; - typedef TQMap ValueMap; + typedef TQMap ValueMap; ValueMap values; // convenience container for TQSqlQuery -- cgit v1.2.1