pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Palle Girgensohn <girgen@pingpong.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: curly braces to group outer joins in queries from OpenOffice.org?
Date: Tue, 11 Nov 2003 11:28:57 -0500
Message-ID: <6997.1068568137@sss.pgh.pa.us> (raw)
In-Reply-To: <40060000.1068567321@rambutan.pingpong.net>
References: <24750000.1068552259@rambutan.pingpong.net>
	<111.1068561592@sss.pgh.pa.us>
	<40060000.1068567321@rambutan.pingpong.net>

Palle Girgensohn <girgen@pingpong.net> writes:
> 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;
> }

Now that I look at it, I bet that they are expecting the ODBC driver to
translate "{ OJ ... }" into the appropriate syntax for the database
(either SQL standard or not, depending on the DB :-().

There are a number of ODBC brace-constructs that our driver knows how to
translate, but I don't think that's one of them.  You should bug the
ODBC guys about it.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <6997.1068568137@sss.pgh.pa.us>
Permalink:  ../6997.1068568137@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6997.1068568137@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, girgen@pingpong.net
  Subject: Re: curly braces to group outer joins in queries from OpenOffice.org?
  In-Reply-To: <6997.1068568137@sss.pgh.pa.us>

* 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