Apache OpenOffice (AOO) Bugzilla – Issue 99566
Loose format of datetme field after aggregate function
Last modified: 2017-05-20 10:23:49 UTC
Version of Base is OOO300m15 (I didn't find in list menu). Platform is Windows 2003 server, ODBC connection to SQL Server 2000. The problem: I have datetime field in SQL table. When I greate query in Base with aggregate function I receive field formatted as number, not as datetime. Example: Table is CREATE TABLE [dbo].[TestDateTime] ( [DOCUMENTID] int NULL, [CREATED_DATE] datetime NULL ) SQL is: SELECT DOCUMENTID, MIN(CREATED_DATE) GROUP BY DOCUMENTID Function CAST also is not working: SELECT DOCUMENTID, CAST(MIN(CREATED_DATE) AS DATETIME) GROUP BY DOCUMENTID
When I did same thing using ADO connection all seems to be OK!
I don't have a MS SQl Server to test it.
Checked w/ DEV300m_60, XP and using embedded HSQLdb database. To reproduce: Open the attached bug document. The file contains two queries: Max_DateTime_EscapeProcessing_enabled Max_DateTime_EscapeProcessing_disabled Execute both queries by double clicking them from the main window UI. Notice that both dataview windows display the column MaxDate as an integer. Close both dataview windows. Open the query "Max_DateTime_EscapeProcessing_disabled" in Edit SQL View mode and execute the query from the query designer - the column is returned as a Date. The same holds for DateTime fields. Confirming, assigning to developer, setting initial target
Created attachment 65044 [details] Bug document with example queries
Fixed in cws dba33b
Please verify in cws dba33b. Thanks.
verified in CWS dba33b find more information about this CWS, like when it is available in the master builds, in EIS, the Environment Information System: http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba33b