summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 0ae085991139..c368cf0bda55 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -1127,7 +1127,7 @@ sal_Bool OSelectionBrowseBox::SaveModified()
case DataType::VARCHAR:
case DataType::LONGVARCHAR:
case DataType::CLOB:
- if(aText[0] != '\'' || aText[aText.getLength() -1] != '\'')
+ if(!aText.startsWith("'") || !aText.endsWith("'"))
{
aText = aText.replaceAll("'", "''");
aText = "'" + aText + "'";