diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-10-11 22:22:33 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2015-10-14 09:16:32 +0000 |
commit | 6b8479107482b180723d01d2fcd90120663435c5 (patch) | |
tree | e1817ac990d585a07beff8046f557d9640101cca | |
parent | c5f55acd89ebc57d43e4b92f29800ea4cf12ae31 (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>
-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, |