pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Palle Girgensohn <girgen@pingpong.net>
To: pgsql-sql@postgresql.org
Subject: curly braces to group outer joins in queries from OpenOffice.org?
Date: Tue, 11 Nov 2003 13:04:19 +0100
Message-ID: <24750000.1068552259@rambutan.pingpong.net> (raw)

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




view thread (7+ messages)  latest in thread

Message-ID: <24750000.1068552259@rambutan.pingpong.net>
Permalink:  ../24750000.1068552259@rambutan.pingpong.net/
Also on:    postgresql.org/message-id/24750000.1068552259@rambutan.pingpong.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: girgen@pingpong.net
  Subject: Re: curly braces to group outer joins in queries from OpenOffice.org?
  In-Reply-To: <24750000.1068552259@rambutan.pingpong.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox