diff options
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_driver.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_driver.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx index 8ff522348834..d67d14a1777b 100644 --- a/connectivity/source/drivers/postgresql/pq_driver.cxx +++ b/connectivity/source/drivers/postgresql/pq_driver.cxx @@ -76,15 +76,7 @@ OUString DriverGetImplementationName() Sequence< OUString > DriverGetSupportedServiceNames() { - static Sequence< OUString > *p; - if( ! p ) - { - MutexGuard guard( osl::Mutex::getGlobalMutex() ); - OUString tmp( "com.sun.star.sdbc.Driver" ); - static Sequence< OUString > instance( &tmp,1 ); - p = &instance; - } - return *p; + return Sequence< OUString > { "com.sun.star.sdbc.Driver" }; } Reference< XConnection > Driver::connect( |