summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/odbcbase/OTools.cxx
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-06-18 16:59:29 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-06-22 10:45:04 +0200
commitb2bb1d7f41cf602983b3cd5d301cb698a6a15bb2 (patch)
tree541004c0653265074ddce33a09c810d87b76c977 /connectivity/source/drivers/odbcbase/OTools.cxx
parent06395b802fe1cdc87a1b05dbeb65bb9cce724656 (diff)
correct ODBC timestamp column size
Change-Id: I17255da6989df4ef01d874bbb318b8374d7dd5e0
Diffstat (limited to 'connectivity/source/drivers/odbcbase/OTools.cxx')
-rw-r--r--connectivity/source/drivers/odbcbase/OTools.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/odbcbase/OTools.cxx b/connectivity/source/drivers/odbcbase/OTools.cxx
index b9f4bb792e95..b38dd2b29766 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;
}
}