#86526# fetch decimal and numeric as string

This commit is contained in:
Ocke Janssen 2001-05-03 06:15:56 +00:00
parent 2c49c58195
commit 3aa8db7023
4 changed files with 29 additions and 20 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: BookmarkSet.cxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: oj $ $Date: 2000-11-14 13:28:20 $
* last change: $Author: oj $ $Date: 2001-05-03 07:15:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -162,6 +162,8 @@ void OBookmarkSet::updateColumn(sal_Int32 nPos,Reference< XRowUpdate > _xParamet
{
case DataType::CHAR:
case DataType::VARCHAR:
case DataType::DECIMAL:
case DataType::NUMERIC:
_xParameter->updateString(nPos,_rValue);
break;
case DataType::BIT:
@ -179,8 +181,6 @@ void OBookmarkSet::updateColumn(sal_Int32 nPos,Reference< XRowUpdate > _xParamet
case DataType::DOUBLE:
case DataType::FLOAT:
case DataType::REAL:
case DataType::DECIMAL:
case DataType::NUMERIC:
_xParameter->updateDouble(nPos,_rValue);
break;
case DataType::DATE:
@ -207,6 +207,9 @@ void OBookmarkSet::updateColumn(sal_Int32 nPos,Reference< XRowUpdate > _xParamet
/*------------------------------------------------------------------------
$Log: not supported by cvs2svn $
Revision 1.4 2000/11/14 13:28:20 oj
change for rowset when getRow returns 0
Revision 1.3 2000/10/11 11:18:10 fs
replace unotools with comphelper

View file

@ -2,9 +2,9 @@
*
* $RCSfile: CacheSet.cxx,v $
*
* $Revision: 1.19 $
* $Revision: 1.20 $
*
* last change: $Author: oj $ $Date: 2001-04-02 11:24:49 $
* last change: $Author: oj $ $Date: 2001-05-03 07:15:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -468,6 +468,8 @@ void OCacheSet::setParameter(sal_Int32 nPos,Reference< XParameters > _xParameter
{
case DataType::CHAR:
case DataType::VARCHAR:
case DataType::DECIMAL:
case DataType::NUMERIC:
_xParameter->setString(nPos,_rValue);
break;
case DataType::BIT:
@ -485,8 +487,6 @@ void OCacheSet::setParameter(sal_Int32 nPos,Reference< XParameters > _xParameter
case DataType::DOUBLE:
case DataType::FLOAT:
case DataType::REAL:
case DataType::DECIMAL:
case DataType::NUMERIC:
_xParameter->setDouble(nPos,_rValue);
break;
case DataType::DATE:
@ -538,13 +538,13 @@ void OCacheSet::fillValueRow(ORowSetRow& _rRow,sal_Int32 _nPosition)
{
case DataType::CHAR:
case DataType::VARCHAR:
case DataType::DECIMAL:
case DataType::NUMERIC:
(*aIter) = getString(i);
break;
case DataType::DOUBLE:
case DataType::FLOAT:
case DataType::REAL:
case DataType::DECIMAL:
case DataType::NUMERIC:
(*aIter) = getDouble(i);
break;
case DataType::DATE:
@ -586,6 +586,9 @@ void OCacheSet::fillValueRow(ORowSetRow& _rRow,sal_Int32 _nPosition)
/*------------------------------------------------------------------------
$Log: not supported by cvs2svn $
Revision 1.19 2001/04/02 11:24:49 oj
changes for character stream
Revision 1.18 2001/03/15 08:19:18 fs
cppuhelper/extract -> comphelper/extract

View file

@ -2,9 +2,9 @@
*
* $RCSfile: KeySet.cxx,v $
*
* $Revision: 1.14 $
* $Revision: 1.15 $
*
* last change: $Author: oj $ $Date: 2001-04-10 08:05:08 $
* last change: $Author: oj $ $Date: 2001-05-03 07:15:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -820,13 +820,13 @@ void SAL_CALL OKeySet::refreshRow() throw(SQLException, RuntimeException)
{
case DataType::CHAR:
case DataType::VARCHAR:
case DataType::DECIMAL:
case DataType::NUMERIC:
xParameter->setString(nPos,*aIter);
break;
case DataType::DOUBLE:
case DataType::FLOAT:
case DataType::REAL:
case DataType::DECIMAL:
case DataType::NUMERIC:
xParameter->setDouble(nPos,*aIter);
break;
case DataType::DATE:
@ -897,13 +897,13 @@ sal_Bool OKeySet::fetchRow()
{
case DataType::CHAR:
case DataType::VARCHAR:
case DataType::DECIMAL:
case DataType::NUMERIC:
(*aIter) = m_xDriverRow->getString(aPosIter->second);
break;
case DataType::DOUBLE:
case DataType::FLOAT:
case DataType::REAL:
case DataType::DECIMAL:
case DataType::NUMERIC:
(*aIter) = m_xDriverRow->getDouble(aPosIter->second);
break;
case DataType::DATE:
@ -1007,6 +1007,9 @@ namespace dbaccess
/*------------------------------------------------------------------------
$Log: not supported by cvs2svn $
Revision 1.14 2001/04/10 08:05:08 oj
throw exception when no connection
Revision 1.13 2001/04/02 11:14:53 oj
changes for character stream

View file

@ -2,9 +2,9 @@
*
* $RCSfile: RowSet.cxx,v $
*
* $Revision: 1.64 $
* $Revision: 1.65 $
*
* last change: $Author: oj $ $Date: 2001-05-02 12:47:51 $
* last change: $Author: oj $ $Date: 2001-05-03 07:15:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -1849,13 +1849,13 @@ void ORowSet::execute_NoApprove_NoNewConn(ClearableMutexGuard& _rClearForNotific
{
case DataType::CHAR:
case DataType::VARCHAR:
case DataType::DECIMAL:
case DataType::NUMERIC:
xParam->setString(i,*aIter);
break;
case DataType::DOUBLE:
case DataType::FLOAT:
case DataType::REAL:
case DataType::DECIMAL:
case DataType::NUMERIC:
xParam->setDouble(i,*aIter);
break;
case DataType::DATE: