Skip to content

Commit 1e3172e

Browse files
committed
Also fix quotedValue in OGR, Oracle, Spatialite compilers
1 parent ed54e3c commit 1e3172e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/providers/ogr/qgsogrexpressioncompiler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ QString QgsOgrExpressionCompiler::quotedIdentifier( const QString& identifier )
9292
return mSource->mProvider->quotedIdentifier( identifier.toUtf8() );
9393
}
9494

95-
QString QgsOgrExpressionCompiler::quotedValue( const QVariant& value, bool& )
95+
QString QgsOgrExpressionCompiler::quotedValue( const QVariant& value, bool& ok )
9696
{
97+
ok = true;
9798
return QgsOgrUtils::quotedValue( value );
9899
}

src/providers/oracle/qgsoracleexpressioncompiler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ QString QgsOracleExpressionCompiler::quotedIdentifier( const QString& identifier
6767
return QgsOracleConn::quotedIdentifier( identifier );
6868
}
6969

70-
QString QgsOracleExpressionCompiler::quotedValue( const QVariant& value, bool& )
70+
QString QgsOracleExpressionCompiler::quotedValue( const QVariant& value, bool& ok )
7171
{
72+
ok = true;
7273
return QgsOracleConn::quotedValue( value );
7374
}

src/providers/spatialite/qgsspatialiteexpressioncompiler.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ QString QgsSpatiaLiteExpressionCompiler::quotedIdentifier( const QString& identi
5252
return QgsSpatiaLiteProvider::quotedIdentifier( identifier );
5353
}
5454

55-
QString QgsSpatiaLiteExpressionCompiler::quotedValue( const QVariant& value, bool& )
55+
QString QgsSpatiaLiteExpressionCompiler::quotedValue( const QVariant& value, bool& ok )
5656
{
57+
ok = true;
58+
5759
if ( value.isNull() )
5860
return "NULL";
5961

0 commit comments

Comments
 (0)