To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=78988 Issue #|78988 Summary|Date queries add braces around dates, causing an error Component|Database access Version|OOo 2.2.1 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|none Assigned to|jbu Reported by|eeka1234
------- Additional comments from [EMAIL PROTECTED] Fri Jun 29 01:54:15 +0000 2007 ------- Postgres or the Postgres driver doesn't like the braces that are added around dates when making a query in query Design View. In OpenOffice.org Base, if I create a query in Design View with a criteria such as > '2007-01-01' for a date field, when I try to execute the query I get the following error: Error code: 1 pq_driver: [PGRES_FATAL_ERROR]ERROR: syntax error at or near "{" at character 55 (caused by statement 'SELECT * FROM "public"."yaf" WHERE ( ( "event_date" > {D '2006-01-01' } ) )') If I go in and edit the SQL by hand by changing the query to 'SELECT * FROM "public"."yaf" WHERE ( ( "event_date" > '2006-01-01' ) )') the query works okay. --------------------------------------------------------------------- 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]