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 | e1022adee0a2708964c75094d17e7da406fccff0 (patch) | |
tree | 2d6c495509b59312f6876acf1cb15258c3b96d59 /connectivity/source/drivers/ado/AConnection.cxx | |
parent | ed7319d1ea41a09797c285ff19f99ce30ae0ef2f (diff) |
correct access to bstr and variant
Diffstat (limited to 'connectivity/source/drivers/ado/AConnection.cxx')
-rw-r--r-- | connectivity/source/drivers/ado/AConnection.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/connectivity/source/drivers/ado/AConnection.cxx b/connectivity/source/drivers/ado/AConnection.cxx index 37bccd6a28a9..639796e4b662 100644 --- a/connectivity/source/drivers/ado/AConnection.cxx +++ b/connectivity/source/drivers/ado/AConnection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: AConnection.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: jl $ $Date: 2001-03-21 13:40:22 $ + * 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 @@ -203,11 +203,12 @@ void OConnection::construct(const ::rtl::OUString& url,const Sequence< PropertyV WpADOProperty aProp(pProp); if(pProp) { - aProp.PutValue(OLEVariant(VARIANT_TRUE)); + aProp.PutValue(OLEVariant(sal_True)); OLEVariant aVar = aProp.GetValue(); } pProps->Release(); } + buildTypeInfo(); //bErg = TRUE; } else @@ -272,7 +273,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const ::rtl:: WpADOProperty aProp(pProp); if(pProp) { - pProp->put_Value(OLEVariant(VARIANT_TRUE)); + pProp->put_Value(OLEVariant(sal_True)); WpADOCommand aCommand; aCommand.Create(); aCommand.put_ActiveConnection((IDispatch*)*m_pAdoConnection); @@ -506,7 +507,7 @@ void OConnection::buildTypeInfo() throw( SQLException) aInfo.nMinimumScale = xRow->getShort (14); aInfo.nType = xRow->getShort (2); aInfo.nSearchType = xRow->getShort (9); - aInfo.nNumPrecRadix = xRow->getInt (18); + aInfo.nNumPrecRadix = (sal_Int16)xRow->getInt (18); aInfo.bCurrency = xRow->getBoolean (11); aInfo.bAutoIncrement = xRow->getBoolean (12); @@ -518,7 +519,7 @@ void OConnection::buildTypeInfo() throw( SQLException) // in the Hashtable if we don't already have an // entry for this SQL type. - m_aTypeInfo.push_back(aInfo); + m_aTypeInfo.insert(OTypeInfoMap::value_type(aInfo.nType,aInfo)); } // Close the result set/statement. |