Re: curly braces to group outer joins in queries from

From: Palle Girgensohn <girgen(at)pingpong(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: curly braces to group outer joins in queries from
Date: 2003-11-11 16:15:21
Message-ID: 40060000.1068567321@rambutan.pingpong.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

What about the `OJ'?

FROM ( OJ table alias left join table2 alias2 )

OJ seems plain wrong, right?

Here's their code snippet (from
oo_1.1_src/dbaccess/source/ui/querydesign/QueryDesignView.cxx):

if(aJoin.getLength())
{
::rtl::OUString aStr = ::rtl::OUString::createFromAscii("{ OJ ");
aStr += aJoin;
aStr += ::rtl::OUString::createFromAscii(" },");
aTableListStr += aStr;
}

You mean simple parathesis, no `OJ' would be OK?

like:

@@ -1141,9 +1141,9 @@

if(aJoin.getLength())
{
- ::rtl::OUString aStr = ::rtl::OUString::createFromAscii("{ OJ ");
+ ::rtl::OUString aStr = ::rtl::OUString::createFromAscii("( ");
aStr += aJoin;
- aStr += ::rtl::OUString::createFromAscii(" },");
+ aStr += ::rtl::OUString::createFromAscii(" ),");
aTableListStr += aStr;
}

Thanks for the prompt reply, as usual!

Regards,
Palle

--On tisdag, november 11, 2003 09.39.52 -0500 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
wrote:

> Palle Girgensohn <girgen(at)pingpong(dot)net> writes:
>> 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.
>
> The SQL standard has never heard of it, either. Parentheses would be
> correct here.
>
> regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Holger Jakobs 2003-11-11 16:24:36 Re: transaction processing after error in statement
Previous Message Christoph Haller 2003-11-11 15:56:19 Re: How to know column constraints via system catalog tables