The following commit has been merged in the master branch: commit 9843384a765e56a11a3bd81e11ac9bd49cd2c95d Author: Juergen E. Fischer <j...@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 _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel