To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=99566 Issue #|99566 Summary|Lose format of datetme field after aggregate function Component|Database access Version|OOO300m9 Platform|Other URL| OS/Version|Windows 2003 Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|none Assigned to|dbaneedsconfirm Reported by|sstefanov
------- Additional comments from [email protected] Tue Feb 24 08:44:39 +0000 2009 ------- 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 --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
