diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-08-13 09:52:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-08-13 10:05:57 +0200 |
commit | f50a41437ee99aee499dbabd1d36ef8197db5559 (patch) | |
tree | 27aaa825787a3c3999472ee3a254b9d31100e3d3 /connectivity | |
parent | a91805241c64694b0e4ba16b90edcf56fab2cf5a (diff) |
fdo#53246 Fresh postgresql-sdbc implementation names
The descriptions for fdo#53246 "Libo36 does not start, InvalidRegistryException
from program/services/postgresql-sdbc.rdb" make it look like the user had
installed the functionality that comes bundled in postgresql-sdbc.rdb also as an
extension installed per-user or shared.
<http://wiki.documentfoundation.org/PostgreSQL-SDBC> indicates that what is now
bundled due to c97d74b5f0608866bad3f7ae943811bdff4f7986 "fdo#45090: Changed
postgresql-sdbc from bundled oxt to proper optional part" indeed was once
available as a freestanding postgresql-sdbc-*.oxt that could have been installed
per-user or shared.
To prevent problems with such scenarios, rename the relevant implementation
names by adding a ".noext" suffix.
Change-Id: I43414a64461ba643f0ca0b2749450099cb6c8a4d
Diffstat (limited to 'connectivity')
9 files changed, 10 insertions, 10 deletions
diff --git a/connectivity/registry/postgresql/org/openoffice/Office/DataAccess/Drivers.xcu b/connectivity/registry/postgresql/org/openoffice/Office/DataAccess/Drivers.xcu index 8958123c41d5..75328efa9aa2 100644 --- a/connectivity/registry/postgresql/org/openoffice/Office/DataAccess/Drivers.xcu +++ b/connectivity/registry/postgresql/org/openoffice/Office/DataAccess/Drivers.xcu @@ -56,7 +56,7 @@ <node oor:name="Installed" install:module="postgresql"> <node oor:name="sdbc:postgresql:*" oor:op="replace"> <prop oor:name="Driver"> - <value>org.openoffice.comp.connectivity.pq.Driver</value> + <value>org.openoffice.comp.connectivity.pq.Driver.noext</value> </prop> <prop oor:name="DriverTypeDisplayName" oor:type="xs:string"> <value xml:lang="en-US">PostgreSQL</value> diff --git a/connectivity/source/drivers/postgresql/postgresql-sdbc-impl.component b/connectivity/source/drivers/postgresql/postgresql-sdbc-impl.component index bd3c38ca639a..407a0e6c9f54 100644 --- a/connectivity/source/drivers/postgresql/postgresql-sdbc-impl.component +++ b/connectivity/source/drivers/postgresql/postgresql-sdbc-impl.component @@ -29,7 +29,7 @@ <component loader="com.sun.star.loader.SharedLibrary" xmlns="http://openoffice.org/2010/uno-components"> - <implementation name="org.openoffice.comp.connectivity.pq.Connection"> + <implementation name="org.openoffice.comp.connectivity.pq.Connection.noext"> <service name="com.sun.star.sdbc.Connection"/> </implementation> </component> diff --git a/connectivity/source/drivers/postgresql/postgresql-sdbc.component b/connectivity/source/drivers/postgresql/postgresql-sdbc.component index 016029eae227..f691963f9628 100644 --- a/connectivity/source/drivers/postgresql/postgresql-sdbc.component +++ b/connectivity/source/drivers/postgresql/postgresql-sdbc.component @@ -29,7 +29,7 @@ <component loader="com.sun.star.loader.SharedLibrary" xmlns="http://openoffice.org/2010/uno-components"> - <implementation name="org.openoffice.comp.connectivity.pq.Driver"> + <implementation name="org.openoffice.comp.connectivity.pq.Driver.noext"> <service name="com.sun.star.sdbc.Driver"/> </implementation> </component> diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index e1e3754ca6d3..209ca09dce31 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -160,7 +160,7 @@ public: OUString ConnectionGetImplementationName() { - return OUString( RTL_CONSTASCII_USTRINGPARAM( "org.openoffice.comp.connectivity.pq.Connection" ) ); + return OUString( RTL_CONSTASCII_USTRINGPARAM( "org.openoffice.comp.connectivity.pq.Connection.noext" ) ); } com::sun::star::uno::Sequence<rtl::OUString> ConnectionGetSupportedServiceNames(void) { diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx index 98ee8ea7cd77..ed8480c318c4 100644 --- a/connectivity/source/drivers/postgresql/pq_driver.cxx +++ b/connectivity/source/drivers/postgresql/pq_driver.cxx @@ -106,7 +106,7 @@ OUString DriverGetImplementationName() { MutexGuard guard( osl::Mutex::getGlobalMutex() ); static OUString instance( - RTL_CONSTASCII_USTRINGPARAM( "org.openoffice.comp.connectivity.pq.Driver" ) ); + RTL_CONSTASCII_USTRINGPARAM( "org.openoffice.comp.connectivity.pq.Driver.noext" ) ); p = &instance; } return *p; @@ -137,7 +137,7 @@ Reference< XConnection > Driver::connect( seq[1] <<= info; return Reference< XConnection> ( m_smgr->createInstanceWithArgumentsAndContext( - OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.comp.connectivity.pq.Connection" ) ), + OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.comp.connectivity.pq.Connection.noext" ) ), seq, m_ctx ), UNO_QUERY ); } diff --git a/connectivity/workben/postgresql/metadata.py b/connectivity/workben/postgresql/metadata.py index 8a99a7a2b30c..90764d557768 100644 --- a/connectivity/workben/postgresql/metadata.py +++ b/connectivity/workben/postgresql/metadata.py @@ -85,7 +85,7 @@ class TestCase(unittest.TestCase): def setUp( self ): self.driver = self.ctx.ServiceManager.createInstanceWithContext( - 'org.openoffice.comp.connectivity.pq.Driver' , self.ctx ) + 'org.openoffice.comp.connectivity.pq.Driver.noext' , self.ctx ) self.connection = self.driver.connect( self.dburl, () ) ddl.executeDDLs( self.connection ) diff --git a/connectivity/workben/postgresql/preparedstatement.py b/connectivity/workben/postgresql/preparedstatement.py index 0489b18c4c00..a44f2ae55472 100644 --- a/connectivity/workben/postgresql/preparedstatement.py +++ b/connectivity/workben/postgresql/preparedstatement.py @@ -81,7 +81,7 @@ class TestCase(unittest.TestCase): def setUp(self): self.driver = self.ctx.ServiceManager.createInstanceWithContext( - 'org.openoffice.comp.connectivity.pq.Driver', self.ctx ) + 'org.openoffice.comp.connectivity.pq.Driver.noext', self.ctx ) self.connection = self.driver.connect( self.dburl, () ) ddl.executeDDLs( self.connection ) diff --git a/connectivity/workben/postgresql/sdbcx.py b/connectivity/workben/postgresql/sdbcx.py index 3d23214592a5..7c5e97136544 100644 --- a/connectivity/workben/postgresql/sdbcx.py +++ b/connectivity/workben/postgresql/sdbcx.py @@ -101,7 +101,7 @@ class TestCase(unittest.TestCase): def setUp( self ): self.driver = self.ctx.ServiceManager.createInstanceWithContext( - 'org.openoffice.comp.connectivity.pq.Driver' , self.ctx ) + 'org.openoffice.comp.connectivity.pq.Driver.noext' , self.ctx ) self.connection = self.driver.connect( self.dburl, () ) ddl.executeDDLs( self.connection ) diff --git a/connectivity/workben/postgresql/statement.py b/connectivity/workben/postgresql/statement.py index e230ab7098db..1e752e81bbae 100644 --- a/connectivity/workben/postgresql/statement.py +++ b/connectivity/workben/postgresql/statement.py @@ -104,7 +104,7 @@ class TestCase(unittest.TestCase): def setUp(self): self.driver = self.ctx.ServiceManager.createInstanceWithContext( - 'org.openoffice.comp.connectivity.pq.Driver' , self.ctx ) + 'org.openoffice.comp.connectivity.pq.Driver.noext' , self.ctx ) self.connection = self.driver.connect( self.dburl, () ) self.stmt = self.connection.createStatement() try: |