diff options
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 2 |
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 + "'"; |