curly braces to group outer joins in queries from OpenOffice.org? - Mailing list pgsql-sql

From Palle Girgensohn
Subject curly braces to group outer joins in queries from OpenOffice.org?
Date
Msg-id 24750000.1068552259@rambutan.pingpong.net
Whole thread Raw
Responses Re: curly braces to group outer joins in queries from OpenOffice.org?
List pgsql-sql
Hi!

I just tried using openoffice to create a SQL query, but it failed when I 
tried using left outer joins. The contructed query from OO contains curly 
braces to group things. I've never seen this construct before. Is it OO 
doing bad things, or does postgresql not understand it? It's on pg-7.3.4. 
Perhaps 7.4 behaves differently?

SELECT "personer"."foretag", "personer"."fnamn", "personer"."enamn", 
"befattningnamn"."namn"
FROM  { OJ "public"."befattning" "befattning" LEFT OUTER JOIN "public"."personer" "personer" ON "befattning"."personid"

= "personer"."personid" }, "public"."kommentar" "kommentar", "public"."personer" "personer", 
"public"."befattning" "befattning", "public"."befattningnamn" "befattningnamn" WHERE  0 = 1


ERROR:  parser: parse error at or near "{" at character 100

(The WHERE 0 = 1 seems to be OO's way of checking the query syntax.)

Thanks
Palle



pgsql-sql by date:

Previous
From: ow
Date:
Subject: Re: pg 7.4.rc1, Range query performance
Next
From: Christoph Haller
Date:
Subject: Re: Getting the row_count value outside of a function