curly braces to group outer joins in queries from OpenOffice.org?

From: Palle Girgensohn <girgen(at)pingpong(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: curly braces to group outer joins in queries from OpenOffice.org?
Date: 2003-11-11 12:04:19
Message-ID: 24750000.1068552259@rambutan.pingpong.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 2003-11-11 12:27:19 Re: transaction processing after error in statement
Previous Message alban 2003-11-11 11:52:14 Re: 7.3 how remove password valid until