Skip to content
Permalink
Browse files
Fixed #2766.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13755 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jun 20, 2010
1 parent f87e2a7 commit 9c196bb3cd10b0011cdf6b1da20e5306aa942f15
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgssearchquerybuilder.cpp
@@ -151,8 +151,8 @@ void QgsSearchQueryBuilder::getFieldValues( int limit )

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

0 comments on commit 9c196bb

Please sign in to comment.