Skip to content
Permalink
Browse files

Also fix quotedValue in OGR, Oracle, Spatialite compilers

  • Loading branch information
nyalldawson committed Jan 18, 2016
1 parent ed54e3c commit 1e3172e1b4217bab03705d9ff60fa86f3df1d7c3
@@ -92,7 +92,8 @@ QString QgsOgrExpressionCompiler::quotedIdentifier( const QString& identifier )
return mSource->mProvider->quotedIdentifier( identifier.toUtf8() );
}

QString QgsOgrExpressionCompiler::quotedValue( const QVariant& value, bool& )
QString QgsOgrExpressionCompiler::quotedValue( const QVariant& value, bool& ok )
{
ok = true;
return QgsOgrUtils::quotedValue( value );
}
@@ -67,7 +67,8 @@ QString QgsOracleExpressionCompiler::quotedIdentifier( const QString& identifier
return QgsOracleConn::quotedIdentifier( identifier );
}

QString QgsOracleExpressionCompiler::quotedValue( const QVariant& value, bool& )
QString QgsOracleExpressionCompiler::quotedValue( const QVariant& value, bool& ok )
{
ok = true;
return QgsOracleConn::quotedValue( value );
}
@@ -52,8 +52,10 @@ QString QgsSpatiaLiteExpressionCompiler::quotedIdentifier( const QString& identi
return QgsSpatiaLiteProvider::quotedIdentifier( identifier );
}

QString QgsSpatiaLiteExpressionCompiler::quotedValue( const QVariant& value, bool& )
QString QgsSpatiaLiteExpressionCompiler::quotedValue( const QVariant& value, bool& ok )
{
ok = true;

if ( value.isNull() )
return "NULL";

0 comments on commit 1e3172e

Please sign in to comment.
You can’t perform that action at this time.