Tag: cws_src680_hsqlcsv
User: fs      
Date: 2006/12/17 23:35:40

Modified:
   dba/connectivity/source/commontools/dbtools.cxx

Log:
 RESYNC: (1.65-1.67); FILE MERGED

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: dbtools.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/dbtools.cxx?r1=1.62.14.2&r2=1.62.14.3
Delta lines:  +11 -3
--------------------
--- dbtools.cxx 11 Oct 2006 07:01:53 -0000      1.62.14.2
+++ dbtools.cxx 18 Dec 2006 07:35:37 -0000      1.62.14.3
@@ -234,7 +234,7 @@
        if (!_xTypes.is() || !_xColumn.is())
                return NumberFormat::UNDEFINED;
 
-       sal_Int32 nDataType;
+       sal_Int32 nDataType = 0;
        sal_Int32 nScale = 0;
        try
        {
@@ -1710,6 +1710,14 @@
                        _rxUpdatedObject->updateInt(_nColumnIndex, 
*(sal_Int32*)_rValue.getValue());
                        break;
 
+        case TypeClass_HYPER:
+               {
+                       sal_Int64 nValue = 0;
+                       OSL_VERIFY( _rValue >>= nValue );
+                       _rxUpdatedObject->updateLong( _nColumnIndex, nValue );
+               }
+               break;
+
                case TypeClass_FLOAT:
                        _rxUpdatedObject->updateFloat(_nColumnIndex, 
*(float*)_rValue.getValue());
                        break;
@@ -1966,7 +1974,7 @@
                                break;
                        case DataType::BIGINT:
                                {
-                                       sal_Int64 nValue;
+                                       sal_Int64 nValue = 0;
                                        if(x >>= nValue)
                                        {
                                                
_xParams->setLong(parameterIndex,nValue);
@@ -1978,7 +1986,7 @@
                        case DataType::FLOAT:
                        case DataType::REAL:
                                {
-                                       float nValue;
+                                       float nValue = 0;
                                        if(x >>= nValue)
                                        {
                                                
_xParams->setFloat(parameterIndex,nValue);




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to