Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0ZD4-0003xi-TZ for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Mar 2018 20:59:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f0ZD3-0003Sh-TE for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Mar 2018 20:59:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0Sd3-0000Yl-Pm for pgsql-bugs@lists.postgresql.org; Mon, 26 Mar 2018 13:57:41 +0000 Received: from mail.community4you.de ([213.187.89.195]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0Scv-0006dI-EV for pgsql-bugs@lists.postgresql.org; Mon, 26 Mar 2018 13:57:41 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.community4you.de (Postfix) with ESMTP id 5BE6CEC1C34 for ; Mon, 26 Mar 2018 15:57:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at community4you.de Received: from mail.community4you.de ([127.0.0.1]) by localhost (mail.community4you.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pI4H4RzHASye for ; Mon, 26 Mar 2018 15:57:30 +0200 (CEST) Received: from intapp1.community4you.de (intapp1.community4you.de [10.3.1.86]) (Authenticated sender: mkoch-pop3) by mail.community4you.de (Postfix) with ESMTPA id 3ED95EC1C26 for ; Mon, 26 Mar 2018 15:57:30 +0200 (CEST) Date: Mon, 26 Mar 2018 15:57:30 +0200 (CEST) From: Markus Koch To: pgsql-bugs@lists.postgresql.org Message-ID: <1469710326.449.1522072650246@intapp1> Subject: Aw: Re: BUG #15130: outer-join-escape syntax seems not to work with latest jdbc-driver MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_447_1144467122.1522072650245" User-Agent: open-EIS CLASSIC 8.8.1e (http://www.open-eis.com/) X-Priority: 3 (normal) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_447_1144467122.1522072650245 Content-Type: multipart/alternative; boundary="----=_Part_448_2145792115.1522072650245" ------=_Part_448_2145792115.1522072650245 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit The commit for 9.4.1212 seems not to work - I've tested 9.4.1212 and the latest version from download-page. It would be nice I the driver supports the same syntax as before... Markus Am 26.03.2018 15:17 schrieb Flo Rance : It seems that there's such an issue reported on github: https://github.com/pgjdbc/pgjdbc/issues/865 It seems that there was a change comitted in the version 9.4.1212, as well: https://github.com/pgjdbc/pgjdbc/commit/00a847879f313105de124776b7edaab928bf5b4c Regards, Flo On Mon, Mar 26, 2018 at 12:24 PM, PG Bug reporting form wrote: The following bug has been logged on the website: Bug reference: 15130 Logged by: Markus Koch Email address: markus.koch@community4you.de PostgreSQL version: 9.4.7 Operating system: SuSE Linux Description: We are using Crystal Report Java Reporting Component (JRC) to create reports. Crystal reports creates queries like this: SELECT "CODE"."system_bez", "FAHRZEUG"."fahrzeug_id", "FAHRZEUG"."hersteller", "FAHRZEUG"."x_inaktiv", "G_PARTNER"."g_partner_id", "CODE"."code_table", "G_PARTNER"."name" FROM {oj ("public"."fahrzeug" "FAHRZEUG" LEFT OUTER JOIN "public"."g_partner" "G_PARTNER" ON "FAHRZEUG"."g_partner_id"="G_PARTNER"."g_partner_id") LEFT OUTER JOIN "public"."code" "CODE" ON "FAHRZEUG"."obj_code_id"="CODE"."code_id"} WHERE ("G_PARTNER"."g_partner_id"=1 AND "FAHRZEUG"."x_inaktiv" IS NULL AND ("CODE"."code_table"='OBJ_TYP' AND "CODE"."system_bez"='FAHRZEUG')) ORDER BY "G_PARTNER"."g_partner_id" According to this page: https://jdbc.postgresql.org/documentation/head/outer-joins-escape.html this syntax should still work but in fact it works only up to postgresql-9.4.1211.jre7.jar. If we replace the jdbc-driver postgresql-9.4.1212.jre7.jar or a newer version we're getting this error: ERROR: syntax error at or near "{" I think this is related to the postgres-jdbc-driver because this is the only lib I have replaced. Markus ------=_Part_448_2145792115.1522072650245 Content-Type: text/html; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

The commit f= or 9.4.1212 seems not to work - I've tested 9.4.1212 and the late= st version from download-page.

It would be nice I the driver supports the same syntax as before...

Markus

Am 26.03.2018 15:17 schrieb F= lo Rance <trourance@gmail.com>:

It seems that there's such an issue reported on github:

https://github.com/pgj= dbc/pgjdbc/issues/865
 
It seems that there was a change comitted in the version 9.4.1212, as = well:
 
 
Regards,
Flo

On Mon, Mar 26, 2018 at 12:24 PM, PG Bug reporti= ng form <noreply@postgresql.org> wrote= :
The following bug has been logged on t= he website:

Bug reference:      15130
Log= ged by:          Markus Koch
Email address:&= #160;     markus.= koch@community4you.de
PostgreSQL version: 9.4.7
Operating s= ystem:   SuSE Linux
Description:

We are using = Crystal Report Java Reporting Component (JRC) to create
reports.

Crystal reports creates queries like this:
SELECT "CODE"."sy= stem_bez",
"FAHRZEUG"."fahrzeug_id", "FAHRZEUG"."hersteller", "FAHRZE= UG"."x_inaktiv",

"G_PARTNER"."g_partner_id", "CODE"."code_tabl= e", "G_PARTNER"."name"
FROM   {oj ("public"."fahrzeug" "FAH= RZEUG" LEFT OUTER JOIN
"public"."g_partner"
"G_PARTNER" ON "FAH= RZEUG"."g_partner_id"=3D"G_PARTNER"."g_partner_id")
LEFT OUTER= JOIN "public"."code" "CODE" ON
"FAHRZEUG"."obj_code_id"=3D"CO= DE"."code_id"}
WHERE  ("G_PARTNER"."g_partner_id"=3D1 AND "FAHRZ= EUG"."x_inaktiv"
IS  NULL  AND ("CODE"."code_table"=3D'OBJ_= TYP' AND
"CODE"."system_bez"=3D'FAHRZEUG'))
ORDER BY "G_= PARTNER"."g_partner_id"

According to this page:
https://jdbc.postgresql.org/= documentation/head/outer-joins-escape.html
this syn= tax should still work but in fact it works only up to
postgresql-9.4.= 1211.jre7.jar.

If we replace the jdbc-driver postgresql-9.4.12= 12.jre7.jar or a newer
version we're getting this error: ERROR: synta= x error at or near "{"

I think this is related to the postgres= -jdbc-driver because this is the only
lib I have replaced.

Markus
------=_Part_448_2145792115.1522072650245-- ------=_Part_447_1144467122.1522072650245--