diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-04-12 11:33:30 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-04-12 11:33:30 +0000 |
commit | 48550de50b341ba38665ebc7a9131aec3d1a18c5 (patch) | |
tree | 7ab5235ec41c5d0f67df4b3224ac8339a5c24458 /connectivity/source/drivers/ado/ACallableStatement.cxx | |
parent | b9eaaea1ee7dace1129f26710926b52e24d04c41 (diff) |
correct access to bstr and variant
Diffstat (limited to 'connectivity/source/drivers/ado/ACallableStatement.cxx')
-rw-r--r-- | connectivity/source/drivers/ado/ACallableStatement.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/drivers/ado/ACallableStatement.cxx b/connectivity/source/drivers/ado/ACallableStatement.cxx index b80625074f..7b9be17bf2 100644 --- a/connectivity/source/drivers/ado/ACallableStatement.cxx +++ b/connectivity/source/drivers/ado/ACallableStatement.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ACallableStatement.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:14:20 $ + * last change: $Author: oj $ $Date: 2001-04-12 12:31:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -75,13 +75,13 @@ IMPLEMENT_SERVICE_INFO(OCallableStatement,"com.sun.star.sdbcx.ACallableStatement #define GET_PARAM() \ ADOParameter* pParam = NULL; \ - m_pParameters->get_Item(OLEVariant(columnIndex-1),&pParam); \ + m_pParameters->get_Item(OLEVariant(sal_Int32(columnIndex-1)),&pParam); \ if(pParam) \ pParam->get_Value(&m_aValue); //************************************************************** //************ Class: java.sql.CallableStatement //************************************************************** -OCallableStatement::OCallableStatement( OConnection* _pConnection,const ::std::vector<connectivity::OTypeInfo>& _TypeInfo,const ::rtl::OUString& sql ) +OCallableStatement::OCallableStatement( OConnection* _pConnection,const OTypeInfoMap& _TypeInfo,const ::rtl::OUString& sql ) : OPreparedStatement( _pConnection, _TypeInfo, sql ) { m_Command.put_CommandType(adCmdStoredProc); @@ -152,7 +152,7 @@ sal_Int32 SAL_CALL OCallableStatement::getInt( sal_Int32 columnIndex ) throw(SQL sal_Int64 SAL_CALL OCallableStatement::getLong( sal_Int32 columnIndex ) throw(SQLException, RuntimeException) { GET_PARAM() - return (sal_Int64)m_aValue.getCurrency(); + return (sal_Int64)m_aValue.getCurrency().int64; } // ------------------------------------------------------------------------- @@ -193,7 +193,7 @@ sal_Int16 SAL_CALL OCallableStatement::getShort( sal_Int32 columnIndex ) throw(S void SAL_CALL OCallableStatement::registerOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName ) throw(SQLException, RuntimeException) { ADOParameter* pParam = NULL; - m_pParameters->get_Item(OLEVariant(parameterIndex-1),&pParam); + m_pParameters->get_Item(OLEVariant(sal_Int32(parameterIndex-1)),&pParam); if(pParam) { pParam->put_Type(ADOS::MapJdbc2ADOType(sqlType)); @@ -204,12 +204,12 @@ void SAL_CALL OCallableStatement::registerOutParameter( sal_Int32 parameterIndex void SAL_CALL OCallableStatement::registerNumericOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException) { ADOParameter* pParam = NULL; - m_pParameters->get_Item(OLEVariant(parameterIndex-1),&pParam); + m_pParameters->get_Item(OLEVariant(sal_Int32(parameterIndex-1)),&pParam); if(pParam) { pParam->put_Type(ADOS::MapJdbc2ADOType(sqlType)); pParam->put_Direction(adParamOutput); - pParam->put_NumericScale(scale); + pParam->put_NumericScale((sal_Int8)scale); } } // ------------------------------------------------------------------------- |