[Libreoffice-commits] .: connectivity/source

Lionel Elie Mamane lmamane at kemper.freedesktop.org
Fri Jun 22 01:49:54 PDT 2012


 connectivity/source/drivers/odbcbase/OTools.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b2bb1d7f41cf602983b3cd5d301cb698a6a15bb2
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Mon Jun 18 16:59:29 2012 +0200

    correct ODBC timestamp column size
    
    Change-Id: I17255da6989df4ef01d874bbb318b8374d7dd5e0

diff --git a/connectivity/source/drivers/odbcbase/OTools.cxx b/connectivity/source/drivers/odbcbase/OTools.cxx
index b9f4bb7..b38dd2b 100644
--- a/connectivity/source/drivers/odbcbase/OTools.cxx
+++ b/connectivity/source/drivers/odbcbase/OTools.cxx
@@ -329,7 +329,8 @@ void OTools::bindData(  SQLSMALLINT _nOdbcType,
         case SQL_TIMESTAMP:
             *(TIMESTAMP_STRUCT*)_pData = *(TIMESTAMP_STRUCT*)_pValue;
             *pLen = (SQLLEN)sizeof(TIMESTAMP_STRUCT);
-            _nColumnSize = 19;
+            // 20+sub-zero precision; we have hundredths of seconds
+            _nColumnSize = 22;
             break;
     }
 }


More information about the Libreoffice-commits mailing list