[SCM] qgis branch, master, updated. a2ee769957385f4e084c5e8b6ba178a8c877d1db
Juergen E. Fischer
jef at norbit.de
Tue Mar 20 13:42:51 UTC 2012
The following commit has been merged in the master branch:
commit 9843384a765e56a11a3bd81e11ac9bd49cd2c95d
Author: Juergen E. Fischer <jef at norbit.de>
Date: Tue Mar 6 13:52:31 2012 +0100
fix #2766
diff --git a/src/gui/qgsquerybuilder.cpp b/src/gui/qgsquerybuilder.cpp
index 3fa16ab..8094c4b 100644
--- a/src/gui/qgsquerybuilder.cpp
+++ b/src/gui/qgsquerybuilder.cpp
@@ -285,7 +285,7 @@ void QgsQueryBuilder::on_lstValues_doubleClicked( const QModelIndex &index )
else if ( value.type() == QVariant::Int || value.type() == QVariant::Double || value.type() == QVariant::LongLong )
txtSQL->insertPlainText( value.toString() );
else
- txtSQL->insertPlainText( "'" + value.toString() + "'" );
+ txtSQL->insertPlainText( "'" + value.toString().replace( "'", "''" ) + "'" );
}
void QgsQueryBuilder::on_btnLessEqual_clicked()
--
The Quantum GIS in Debian project
More information about the Pkg-grass-devel
mailing list