diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-10-11 22:22:33 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-10-12 01:24:54 +0000 |
commit | 898aff0d190b09d16cce866909b64cf023cba43f (patch) | |
tree | c605138dcf199da911de13de02585ffe78a179cc /dbaccess | |
parent | 5b791ec5e0bd6e05769bf9683d9e1f8b3344b9a5 (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>
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 8219cf7616da..8f90a1ad3124 100644 --- a/dbaccess/source/core/misc/dsntypes.cxx +++ b/dbaccess/source/core/misc/dsntypes.cxx @@ -401,6 +401,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 18e637668144..d16d532f834e 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, |