diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-08-29 11:21:08 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-08-29 11:21:08 +0000 |
commit | b3b894be722f9aad6d8a05bc2455ba9af490f9e2 (patch) | |
tree | 14ef9ab83c4f8af4f45fff5493d569a20f4ba15d /connectivity/source/drivers/jdbc/JDriver.cxx | |
parent | 8cf6106c855901bd2ec6a959ad6e93f3686ec143 (diff) |
#84578# fixes for resultset
Diffstat (limited to 'connectivity/source/drivers/jdbc/JDriver.cxx')
-rw-r--r-- | connectivity/source/drivers/jdbc/JDriver.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/connectivity/source/drivers/jdbc/JDriver.cxx b/connectivity/source/drivers/jdbc/JDriver.cxx index 6f161c29c63c..2d0b1512888d 100644 --- a/connectivity/source/drivers/jdbc/JDriver.cxx +++ b/connectivity/source/drivers/jdbc/JDriver.cxx @@ -2,9 +2,9 @@ * * $RCSfile: JDriver.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: oj $ $Date: 2001-08-14 07:21:03 $ + * last change: $Author: oj $ $Date: 2001-08-29 12:21:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -175,6 +175,8 @@ Reference< XConnection > SAL_CALL java_sql_Driver::connect( const ::rtl::OUStrin Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException) { SDBThreadAttach t(getORB()); OSL_ENSURE(t.pEnv,"Java Enviroment gelscht worden!"); + if(!t.pEnv) + throw SQLException(::rtl::OUString::createFromAscii("No Java installed!"),*this,::rtl::OUString::createFromAscii("S1000"),1000 ,Any()); Reference< XConnection > xRet; // first try if the jdbc driver is alraedy registered at the driver manager try |