[QGIS Commit] r13755 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Jun 20 11:58:31 EDT 2010
Author: wonder
Date: 2010-06-20 15:58:31 +0000 (Sun, 20 Jun 2010)
New Revision: 13755
Modified:
trunk/qgis/src/app/qgssearchquerybuilder.cpp
Log:
Fixed #2766.
Modified: trunk/qgis/src/app/qgssearchquerybuilder.cpp
===================================================================
--- trunk/qgis/src/app/qgssearchquerybuilder.cpp 2010-06-20 15:52:54 UTC (rev 13754)
+++ trunk/qgis/src/app/qgssearchquerybuilder.cpp 2010-06-20 15:58:31 UTC (rev 13755)
@@ -151,8 +151,8 @@
if ( !numeric )
{
- // put string in single quotes
- value = "'" + value + "'";
+ // put string in single quotes and escape single quotes in the string
+ value = "'" + value.replace( "'", "''" ) + "'";
}
// add item only if it's not there already
More information about the QGIS-commit
mailing list