summaryrefslogtreecommitdiffstats
path: root/connectivity/source
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2018-04-08 08:26:55 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2018-04-08 17:06:48 +0200
commit7f8d611b9fab034ed13202bcc41ff5ef0270c198 (patch)
tree9438384dc79d47d4ad7d246444795f73cbf45394 /connectivity/source
parenttdf#116772 adapt handling of LIKE conditions to cleaned up StructuredFilter (diff)
downloadcore-7f8d611b9fab034ed13202bcc41ff5ef0270c198.tar.gz
core-7f8d611b9fab034ed13202bcc41ff5ef0270c198.zip
SQL string quoting: escape "'" character also at beginning of string
Change-Id: I51db43c1a3b6d3c93a04a3419238ea286cab987e Reviewed-on: https://gerrit.libreoffice.org/52575 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/commontools/DateConversion.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx
index 4fa1c8c1deb7..967c8b5696db 100644
--- a/connectivity/source/commontools/DateConversion.cxx
+++ b/connectivity/source/commontools/DateConversion.cxx
@@ -80,7 +80,7 @@ OUString DBTypeConversion::toSQLString(sal_Int32 eType, const Any& _rVal,
{
OUString aTemp;
_rxTypeConverter->convertToSimpleType(_rVal, TypeClass_STRING) >>= aTemp;
- sal_Int32 nIndex = sal_Int32(-1);
+ sal_Int32 nIndex = sal_Int32(-2);
const OUString sQuot("\'");
do
{