We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c58debc commit 9843384Copy full SHA for 9843384
src/gui/qgsquerybuilder.cpp
@@ -285,7 +285,7 @@ void QgsQueryBuilder::on_lstValues_doubleClicked( const QModelIndex &index )
285
else if ( value.type() == QVariant::Int || value.type() == QVariant::Double || value.type() == QVariant::LongLong )
286
txtSQL->insertPlainText( value.toString() );
287
else
288
- txtSQL->insertPlainText( "'" + value.toString() + "'" );
+ txtSQL->insertPlainText( "'" + value.toString().replace( "'", "''" ) + "'" );
289
}
290
291
void QgsQueryBuilder::on_btnLessEqual_clicked()
0 commit comments