Tag: cws_src680_dba24
User: oj      
Date: 05/02/21 03:12:01

Modified:
 /dba/connectivity/source/drivers/jdbc/
  JDriver.cxx

Log:
 RESYNC: (1.30-1.31); FILE MERGED

File Changes:

Directory: /dba/connectivity/source/drivers/jdbc/
=================================================

File [changed]: JDriver.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/jdbc/JDriver.cxx?r1=1.30.52.1&r2=1.30.52.2
Delta lines:  +10 -4
--------------------
--- JDriver.cxx 4 Feb 2005 08:43:36 -0000       1.30.52.1
+++ JDriver.cxx 21 Feb 2005 11:11:58 -0000      1.30.52.2
@@ -84,6 +84,9 @@
 #ifndef _DBHELPER_DBEXCEPTION_HXX_ 
 #include "connectivity/dbexception.hxx"
 #endif
+#ifndef INCLUDED_JVMFWK_FRAMEWORK_H
+#include <jvmfwk/framework.h>
+#endif
 
 using namespace connectivity;
 using namespace ::com::sun::star::uno;
@@ -163,8 +166,11 @@
 {
        // don't ask the real driver for the url
        // I feel responsible for all jdbc url's
+       sal_Bool bEnabled = sal_False;
+       javaFrameworkError eErr = jfw_getEnabled( &bEnabled );
+       OSL_ENSURE( JFW_E_NONE == eErr,"error in jfw_getEnabled" );
        static const ::rtl::OUString s_sJdbcPrefix = 
::rtl::OUString::createFromAscii("jdbc:");
-       return 0 == url.compareTo(s_sJdbcPrefix, 5);
+       return bEnabled && 0 == url.compareTo(s_sJdbcPrefix, 5);
 }
 // -------------------------------------------------------------------------
 Sequence< DriverPropertyInfo > SAL_CALL java_sql_Driver::getPropertyInfo( 
const ::rtl::OUString& url, 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to