summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-11-01 22:37:59 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-11-01 22:37:59 +0900
commit4a5da4685a8607a87602e065d1e3abdbf66c9ff9 (patch)
tree287c72141034c052bfd51c9ecc78e7fa5277f553 /src/sql
parent0614be092185ccde33cd70fe6076f19970ebe571 (diff)
downloadqt3-4a5da4685a8607a87602e065d1e3abdbf66c9ff9.tar.gz
qt3-4a5da4685a8607a87602e065d1e3abdbf66c9ff9.zip
Fixed FTBFS caused by name conflict with new postgres server dev 11
package. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/sql')
-rw-r--r--src/sql/qsqlextension_p.cpp6
-rw-r--r--src/sql/qsqlextension_p.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/sql/qsqlextension_p.cpp b/src/sql/qsqlextension_p.cpp
index 4e68fee..137ef50 100644
--- a/src/sql/qsqlextension_p.cpp
+++ b/src/sql/qsqlextension_p.cpp
@@ -68,7 +68,7 @@ void QSqlExtension::bindValue( const QString& placeholder, const QVariant& val,
if ( index.contains( (int)values.count() ) ) {
index[ (int)values.count() ] = placeholder;
}
- values[ placeholder ] = Param( val, tp );
+ values[ placeholder ] = QtParam( val, tp );
}
void QSqlExtension::bindValue( int pos, const QVariant& val, QSql::ParameterType tp )
@@ -76,7 +76,7 @@ void QSqlExtension::bindValue( int pos, const QVariant& val, QSql::ParameterType
bindm = BindByPosition;
index[ pos ] = QString::number( pos );
QString nm = QString::number( pos );
- values[ nm ] = Param( val, tp );
+ values[ nm ] = QtParam( val, tp );
}
void QSqlExtension::addBindValue( const QVariant& val, QSql::ParameterType tp )
@@ -130,7 +130,7 @@ QVariant QSqlExtension::boundValue( int pos ) const
QMap<QString, QVariant> QSqlExtension::boundValues() const
{
- QMap<QString, Param>::ConstIterator it;
+ QMap<QString, QtParam>::ConstIterator it;
QMap<QString, QVariant> 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 01e540e..a77be75 100644
--- a/src/sql/qsqlextension_p.h
+++ b/src/sql/qsqlextension_p.h
@@ -71,11 +71,11 @@
#define QM_TEMPLATE_EXTERN_SQL Q_TEMPLATE_EXTERN
#endif
-struct Param {
- Param( const QVariant& v = QVariant(), QSql::ParameterType t = QSql::In ): value( v ), typ( t ) {}
+struct QtParam {
+ QtParam( const QVariant& v = QVariant(), QSql::ParameterType t = QSql::In ): value( v ), typ( t ) {}
QVariant value;
QSql::ParameterType typ;
- Q_DUMMY_COMPARISON_OPERATOR(Param)
+ Q_DUMMY_COMPARISON_OPERATOR(QtParam)
};
struct Holder {
@@ -114,7 +114,7 @@ public:
int bindCount;
QMap<int, QString> index;
- typedef QMap<QString, Param> ValueMap;
+ typedef QMap<QString, QtParam> ValueMap;
ValueMap values;
// convenience container for QSqlQuery