DBTIMESTAMP accuracy hint
Andreas Pflug
pflug at pse-consulting.de
Thu Nov 18 05:47:06 CST 2010
---
dlls/oledb32/convert.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/oledb32/convert.c b/dlls/oledb32/convert.c
index 7221af0..d85eb4a 100644
--- a/dlls/oledb32/convert.c
+++ b/dlls/oledb32/convert.c
@@ -452,6 +452,7 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
st.wMinute = ts->minute;
st.wSecond = ts->second;
st.wMilliseconds = ts->fraction/1000000L;
+ /* DBTIMESTAMP's accuracy is nanoseconds, while we're supporting only milliseconds here */
hr = (SystemTimeToVariantTime(&st, d) ? S_OK : E_FAIL);
break;
}
@@ -476,6 +477,7 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
d->hour = st.wHour;
d->minute = st.wMinute;
d->second = st.wSecond;
+ /* DBTIMESTAMP's accuracy is nanoseconds, while we're supporting only milliseconds here */
d->fraction = st.wMilliseconds * 1000000L;
break;
}
--
1.7.2.3
--------------030505070201000701020308
Content-Type: text/plain;
name="0005-conversion-for-DBTYPE_DECIMAL.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0005-conversion-for-DBTYPE_DECIMAL.txt"
More information about the wine-patches
mailing list