connectivity/source/commontools/DateConversion.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1ddb065adcd0c2f5666e86bdf841d818ab7a215e
Author: Lionel Elie Mamane <lio...@mamane.lu>
Date:   Sun Apr 8 08:26:55 2018 +0200

    SQL string quoting: escape "'" character also at beginning of string
    
    Change-Id: I51db43c1a3b6d3c93a04a3419238ea286cab987e
    Reviewed-on: https://gerrit.libreoffice.org/52577
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/connectivity/source/commontools/DateConversion.cxx 
b/connectivity/source/commontools/DateConversion.cxx
index 39acab5c1092..765937fe39c0 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
                         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to