Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TeQSN-0007qo-EX for pgsql-odbc@arkaria.postgresql.org; Fri, 30 Nov 2012 13:16:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TeQSM-0007Gy-Hl for pgsql-odbc@arkaria.postgresql.org; Fri, 30 Nov 2012 13:16:38 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TeQSL-0007Gt-QV for pgsql-odbc@postgresql.org; Fri, 30 Nov 2012 13:16:38 +0000 Received: from mailserver.smatis.fr ([109.3.189.89]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TeQSJ-0004Fm-CW for pgsql-odbc@postgresql.org; Fri, 30 Nov 2012 13:16:37 +0000 Received: from localhost (unknown [127.0.0.1]) by mailserver.smatis.fr (Postfix) with ESMTP id 59D714BE75 for ; Fri, 30 Nov 2012 13:12:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at smatis.mut Received: from mailserver.smatis.fr ([127.0.0.1]) by localhost (SPAMOS.smatis.mut [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G7G0b45oKG0K for ; Fri, 30 Nov 2012 14:12:14 +0100 (CET) Received: from srv1mail.smatis.mut (srv1mail.smatis.mut [192.1.1.118]) by mailserver.smatis.fr (Postfix) with ESMTP id 691964BE6A for ; Fri, 30 Nov 2012 14:12:14 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv1mail.smatis.mut (Postfix) with ESMTP id 17870144013 for ; Fri, 30 Nov 2012 14:16:32 +0100 (CET) X-Virus-Scanned: amavisd-new at srv1mail.smatis.mut Received: from srv1mail.smatis.mut ([127.0.0.1]) by localhost (srv1mail.smatis.mut [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FVz8-WMy2A4y for ; Fri, 30 Nov 2012 14:16:20 +0100 (CET) Received: from srv1mail.smatis.mut (srv1mail.smatis.mut [192.1.1.118]) by srv1mail.smatis.mut (Postfix) with ESMTP id B352314400F for ; Fri, 30 Nov 2012 14:16:20 +0100 (CET) Date: Fri, 30 Nov 2012 14:16:20 +0100 (CET) From: JOUBERT Renaud To: pgsql-odbc@postgresql.org Message-ID: <2146113297.1517076.1354281380653.JavaMail.root@srv1mail.smatis.mut> In-Reply-To: <400936218.1516994.1354280895367.JavaMail.root@srv1mail.smatis.mut> Subject: bug report on psql odbc 9.01.02.00 ( seems beeing there since 9.00.03.10 ) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1517075_1368706102.1354281380652" X-Originating-IP: [109.3.189.86] X-Mailer: Zimbra 6.0.14_GA_2931 (ZimbraWebClient - SAF3 (Win)/6.0.14_GA_2928) X-Pg-Spam-Score: 0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org ------=_Part_1517075_1368706102.1354281380652 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,=20 i want to report a bug on psql odbc 9.01.02.00 ( seems beeing there since 9= .00.03.10 )=20 odbs 9.01.02.00 parses subqueries incorrectly :=20 SELECT DISTINCT G_T0.personne_uid ,=20 G_T0.personne_num ,=20 G_T0.personne_eid|| TO_CHAR(1, '9999999999') ,=20 substr(md5(to_char(random()*1000000,'999999')),1,6)=20 FROM public.data_personne G_T0 INNER JOIN (SELECT G_T3.contrat_assure_uid A= S G_F1=20 FROM public.data_contrat G_T3,=20 public.dim_contrat_nature G_T4,=20 public.dim_contrat_statut G_T5=20 WHERE ( G_T5.contrat_statut_uid =3D G_T3.contrat_statut_uid )=20 AND ( G_T4.contrat_nature_uid =3D G_T3.contrat_nature_uid )=20 AND ( G_T4.contrat_nature_eid =3D 'S' AND G_T3.contrat_eid NOT LIKE '%group= e' AND ( G_T5.contrat_statut_eid IN ('in_force' , 'pending_1' ) OR G_T3.con= trat_date_resiliation IS NULL OR G_T3.contrat_date_resiliation >=3D NOW() )= =20 ) G_T2=20 ON G_T2.G_F1 =3D G_T0.personne_uid } LEFT OUTER JOIN public.data_espace_cli= ent_internet G_T1=20 ON G_T0.personne_uid =3D G_T1.espace_client_internet_personne_uid=20 WHERE G_T1.espace_client_internet_uid IS NULL=20 give now the error "subquery in FROM must have an alias"=20 It was perfectly execute with the old version 8.03.04.00=20 www.smatis.fr =09 =09Renaud JOUBERT - Administrateur BD - P=C3=B4le fonctionnel=20 6 =C3=A0 14 rue du Piave=20 16920 Angoul=C3=AAme cedex 09=20 renaud.joubert@smatis.fr=20 Tel : 05 45 39 36 35=20 Fax : 05 45 39 36 39=20 =09Pensez =C3=A0 l'environnement avant d'imprimer ce message / Think about = the environment before printing=20 ------=_Part_1517075_1368706102.1354281380652 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Arial, Helvetica, sans-serif; font-size: 10pt; co= lor: #000000'>
H= ello,

= i want to report a bug on psql odbc 9.01.02.00 ( seems beeing there since 9= .00.03.10 )
odbs 9.01.02.00 parses subqueries incorrectly : 
= SELECT DISTINCT &nbs= p;G_T0.personne_uid , 
G_T0.personne_num , 
G_T0.personne_eid|| TO_CHAR= (1, '9999999999')  , 
substr(md5(to_char(random()*1000000,'999999'))= ,1,6)    
FROM public.data_personne G_T0 INNER JOIN (S= ELECT  G_T3.contrat_assure_uid  AS G_F1  
<= font size=3D"2" face=3D"arial, helvetica, sans-serif">FROM  public.dat= a_contrat G_T3, 
public.dim_contrat_nature G_T4, 
<= font size=3D"2" face=3D"arial, helvetica, sans-serif">public.dim_contrat_st= atut G_T5  
WHERE ( G_T5.contrat_statut_uid =3D G_T3.contrat_statut_uid )=
AN= D ( G_T4.contrat_nature_uid =3D G_T3.contrat_nature_uid )
= AND ( G_T4.contrat_n= ature_eid =3D 'S'   AND G_T3.contrat_eid NOT LIKE '%groupe'   &nb= sp;AND ( G_T5.contrat_statut_eid IN ('in_force' , 'pending_1' )  OR G_= T3.contrat_date_resiliation IS NULL   OR G_T3.contrat_date_resiliation= >=3D NOW() )  
) G_T2 
ON G_T2.G_F1 =3D G_T0.personne_uid  } &= nbsp;LEFT OUTER JOIN public.data_espace_client_internet G_T1 
ON G_T0.per= sonne_uid =3D G_T1.espace_client_internet_personne_uid
WHERE G_T1.espace_clien= t_internet_uid IS NULL   

give now the error "subquery in FR= OM must have an alias"

It was perfectly execute with the old version 8.03.04.00




<= font face=3D"Arial" size=3D"1">Renaud JOUBERT - Administrateur BD - P=C3=B4= le fonctionnel
6 =C3=A0 14 rue du Piave
16920 Angoul=C3=AAme cedex 09=
renaud.joubert@smatis.fr
Tel : 05 45 39 36 35
Fax : 05 45 39 36 39
<= tr>
Pensez =C3=A0 l= 'environnement avant d'imprimer ce message / Think about the environment be= fore printing

<= /div>
------=_Part_1517075_1368706102.1354281380652--