Tag: cws_src680_dba23ui
User: fs      
Date: 2007-05-21 11:10:17+0000
Log:
 improved field type detection - numbers with leading zeros recognized as text
 Issue number:  #i76668#
 Submitted by:  [EMAIL PROTECTED]
 Reviewed by:   [EMAIL PROTECTED]

File Changes:

Directory: /dba/connectivity/source/drivers/calc/
=================================================

File [changed]: CTable.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/calc/CTable.cxx?r1=1.29&r2=1.29.36.1
Delta lines:  +6 -4
-------------------
--- CTable.cxx  2006-11-21 16:59:46+0000        1.29
+++ CTable.cxx  2007-05-21 11:10:14+0000        1.29.36.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: CTable.cxx,v $
  *
- *  $Revision: 1.29 $
+ *  $Revision: 1.29.36.1 $
  *
- *  last change: $Author: vg $ $Date: 2006/11/21 16:59:46 $
+ *  last change: $Author: fs $ $Date: 2007/05/21 11:10:14 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -336,7 +336,9 @@
                        {
                        }
 
-                       if ( nNumType & NumberFormat::NUMBER )
+                       if ( nNumType & NumberFormat::TEXT )
+                               rDataType = DataType::VARCHAR;
+                       else if ( nNumType & NumberFormat::NUMBER )
                                rDataType = DataType::DECIMAL;
                        else if ( nNumType & NumberFormat::CURRENCY )
                        {




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

Reply via email to