Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Attached patch solves (according to user report on master daily build)
fdo#36555, a severity "critical" bug which keeps users from connecting
to ADO / OLE DB datasources. In particular, it keeps user from
connecting to MS Access (.mdb) files in the most natural way; that is,
by creating a new ODB file by wizard, selecting "connect to existing
database" and then "MS Access" in the drop-down list.

It does not completely solve the bug in *my* testing (in master), but
that may be specific to my local setup and/or the MinGW build.

However, I would like to have that patch already applied to the
libreoffice-3-4 branch since:

 - It completely solves the bug at least for some
   (see https://bugs.freedesktop.org/show_bug.cgi?id=36555#c42)

 - It is "obviously" correct, independent of the bug.

-- 
Lionel
From d270baa6b49f18b7b84cc2d3bacf31074c142a77 Mon Sep 17 00:00:00 2001
From: Lionel Elie Mamane <lionel.mamane@gestman.lu>
Date: Tue, 22 Nov 2011 14:25:10 +0100
Subject: [PATCH 3/3] fdo#36555: pImplementationName is not a compile-time
 constant

---
 connectivity/source/drivers/ado/Aservices.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/connectivity/source/drivers/ado/Aservices.cxx 
b/connectivity/source/drivers/ado/Aservices.cxx
index 68600ba..69bd7c6 100644
--- a/connectivity/source/drivers/ado/Aservices.cxx
+++ b/connectivity/source/drivers/ado/Aservices.cxx
@@ -59,7 +59,7 @@ struct ProviderRequest
         sal_Char const* pImplementationName
     )
     : xServiceManager(reinterpret_cast<XMultiServiceFactory*>(pServiceManager))
-    , sImplementationName(OUString(RTL_CONSTASCII_USTRINGPARAM(pImplementationName)))
+    , sImplementationName(OUString::createFromAscii(pImplementationName))
     {
     }
 
-- 
1.7.7.3


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.