Skip to content

Commit 9843384

Browse files
committedMar 6, 2012
fix #2766
1 parent c58debc commit 9843384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/qgsquerybuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void QgsQueryBuilder::on_lstValues_doubleClicked( const QModelIndex &index )
285285
else if ( value.type() == QVariant::Int || value.type() == QVariant::Double || value.type() == QVariant::LongLong )
286286
txtSQL->insertPlainText( value.toString() );
287287
else
288-
txtSQL->insertPlainText( "'" + value.toString() + "'" );
288+
txtSQL->insertPlainText( "'" + value.toString().replace( "'", "''" ) + "'" );
289289
}
290290

291291
void QgsQueryBuilder::on_btnLessEqual_clicked()

0 commit comments

Comments
 (0)