diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-10-11 22:22:33 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-10-17 23:23:31 +0200 |
commit | b4bc059253a84ca061d5e55c2bc3583bb308bded (patch) | |
tree | f8fc78ada793a6f5ebe30babfbd51d3d58cfb435 /dbaccess | |
parent | 38c0293d79ea8753d45735a489199799eab53ee3 (diff) |
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@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
(cherry picked from commit 898aff0d190b09d16cce866909b64cf023cba43f)
Reviewed-on: https://gerrit.libreoffice.org/19315
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 6b8479107482b180723d01d2fcd90120663435c5)
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/misc/dsntypes.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/inc/dsntypes.hxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx index a8e80f21be6a..478e4497e5d5 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 79b8f9c928aa..f176f74bac37 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, |