[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - dbaccess/source

Julien Nabet serval2412 at yahoo.fr
Wed Oct 14 02:16:52 PDT 2015


 dbaccess/source/core/misc/dsntypes.cxx |    1 +
 dbaccess/source/inc/dsntypes.hxx       |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 6b8479107482b180723d01d2fcd90120663435c5
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Oct 11 22:22:33 2015 +0200

    Related tdf#45775: PgSQL new DB allow empty Datasource
    
    Declare PostgreSql in dsn stuff
    
    Change-Id: I72343bff0d5e6a65a45fc47cc1d346155330f1e5
    Reviewed-on: https://gerrit.libreoffice.org/19310
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>
    (cherry picked from commit 898aff0d190b09d16cce866909b64cf023cba43f)
    Reviewed-on: https://gerrit.libreoffice.org/19315
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx
index a8e80f2..478e449 100644
--- a/dbaccess/source/core/misc/dsntypes.cxx
+++ b/dbaccess/source/core/misc/dsntypes.cxx
@@ -405,6 +405,7 @@ DATASOURCE_TYPE ODsnTypeCollection::determineType(const OUString& _rDsn) const
         KnownPrefix( "sdbc:mysql:jdbc:",    DST_MYSQL_JDBC,         false ),
         KnownPrefix( "sdbc:mysql:mysqlc:",  DST_MYSQL_NATIVE,       false ),
         KnownPrefix( "sdbc:mysqlc:",        DST_MYSQL_NATIVE_DIRECT,false ),
+        KnownPrefix( "sdbc:postgresql:",    DST_POSTGRES,false ),
 
         KnownPrefix( "sdbc:address:mozilla:",           DST_MOZILLA,            true ),
         KnownPrefix( "sdbc:address:thunderbird:",       DST_THUNDERBIRD,        true ),
diff --git a/dbaccess/source/inc/dsntypes.hxx b/dbaccess/source/inc/dsntypes.hxx
index 79b8f9c..f176f74 100644
--- a/dbaccess/source/inc/dsntypes.hxx
+++ b/dbaccess/source/inc/dsntypes.hxx
@@ -61,6 +61,7 @@ enum DATASOURCE_TYPE
     DST_MYSQL_NATIVE_DIRECT = 25,
     DST_FIREBIRD            = 26,
     DST_EMBEDDED_FIREBIRD    = 27,
+    DST_POSTGRES = 28,
 
     DST_USERDEFINE1,    /// first user defined driver
     DST_USERDEFINE2,


More information about the Libreoffice-commits mailing list