diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-21 15:41:11 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-21 15:41:11 +0000 |
commit | 6943e3aa02a4ffe07b3491227a6f51cfcbf1aa18 (patch) | |
tree | 9b489c7aebb9331d13d1400ddb284ea5c67264df /connectivity | |
parent | 63c0be0747c7a9b7b76b3708bc8abeb76bb57ca5 (diff) |
INTEGRATION: CWS dba22 (1.12.16); FILE MERGED
2005/01/04 11:45:19 oj 1.12.16.1: #i39671# erase guard when no longer needed
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/jdbc/CallableStatement.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/jdbc/CallableStatement.cxx b/connectivity/source/drivers/jdbc/CallableStatement.cxx index 435fa85101..f80afd9776 100644 --- a/connectivity/source/drivers/jdbc/CallableStatement.cxx +++ b/connectivity/source/drivers/jdbc/CallableStatement.cxx @@ -2,9 +2,9 @@ * * $RCSfile: CallableStatement.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: hr $ $Date: 2004-11-09 12:11:21 $ + * last change: $Author: kz $ $Date: 2005-01-21 16:41:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -663,9 +663,9 @@ void java_sql_CallableStatement::createStatement(JNIEnv* _pEnv) else { static char * cSignature = "(Ljava/lang/String;)Ljava/sql/CallableStatement;"; - mID = t.pEnv->GetMethodID( m_pConnection->getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID,"Unknown method id!"); - if( mID ){ - out = t.pEnv->CallObjectMethod( m_pConnection->getJavaObject(), mID, str ); + static jmethodID mID2 = t.pEnv->GetMethodID( m_pConnection->getMyClass(), cMethodName, cSignature );OSL_ENSURE(mID2,"Unknown method id!"); + if( mID2 ){ + out = t.pEnv->CallObjectMethod( m_pConnection->getJavaObject(), mID2, str ); } //mID } t.pEnv->DeleteLocalRef(str); |