X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 57220DB6D0 for ; Tue, 15 Nov 2005 14:57:10 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75504-05 for ; Tue, 15 Nov 2005 18:57:09 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 132E2DB80A for ; Tue, 15 Nov 2005 14:57:05 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1Ec5zK-000Nkp-EX for pgsql-odbc@postgresql.org; Tue, 15 Nov 2005 18:57:02 +0000 Received: from 192.168.1.106 ([192.168.1.106]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Tue, 15 Nov 2005 18:57:02 +0000 From: "Dave Page" To: , Subject: Re: is this a odbc bug? Message-ID: <000701c5ea16$5d695597$6a01a8c0@valehousing.co.uk> Date: Tue, 15 Nov 2005 18:57:00 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Thread-Topic: [ODBC] is this a odbc bug? Thread-Index: AcXqFl1p8jKeLgBfThq2oAIGbATQDQ== X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.82 required=5 tests=[AWL=-2.583, MSGID_DOLLARS=2.163, RATWARE_MS_HASH=1.379, RATWARE_OUTLOOK_NONAME=1.861] X-Spam-Score: 2.82 X-Spam-Level: ** X-Archive-Number: 200511/167 X-Sequence-Number: 6403 -----Original Message----- From: "Hugo" Sent: 15/11/05 18:52:04 To: "pgsql-odbc@postgresql.org" Subject: [ODBC] is this a odbc bug? >. now I installed the 8.1.0 plus the odbc driver , > and now my application is returning wrong results ,=20 Upgrade to 08.01.0101 and sanity should return :-) Regards, Dave -----Unmodified Original Message----- Hi , has anybody experienced any problem with the odbc driver that comes with postgres 8.1.0 , I was testing my application against the beta 4 = and everything was working OK, now I installed the 8.1.0 plus the odbc = driver , and now my application is returning wrong results , the application is = the same, no one modification was done, if I run my query from withing the interactive sql editor of pgAdmin, the query returns what it is supposed = to return, the same query from my application doesnt work ( I tested the = query in PowerBulder 8 and VASmalltalk 7 both with same wrong result). I would appreciate any hint on this thanks in advance Hugo below is the query, this query should return rows with D's and P's , but = it returns only rows with D's, the problem is that if I count the rows I realize that it returns all the rows it should (642), but it returns all = of them with D's, if I run the same query from pgAdmin it returns all the rows(642) but with the correct values , 412 P's and 230 D's ***** select distinct 'D' as estado , zona, ano, campana , contrato from comisiones.avon as avon where zona =3D :zona and ano =3D :ano and campana =3D :campana and tipo in ('50') and subtipo in ('02' , '03') group by zona, ano, campana , contrato union select distinct 'D' as estado , zona, ano, campana , contrato from comisiones.viru as viru where zona =3D :zona and ano =3D :ano and campana =3D :campana and tipo in ('50') and subtipo in ('02' , '03') group by zona, ano, campana , contrato union select distinct 'P' as estado, zona, ano, campana , contrato from comisiones.avon as avon where zona =3D :zona and ano =3D :ano and campana =3D :campana and tipo in ('10', '20') and subtipo in ('01') and contrato not in ( select distinct contrato from comisiones.viru as viru where zona =3D :zona and ano =3D :ano and campana =3D :campana and tipo in ('10', '20') and subtipo in ('01') ) group by zona, ano, campana , contrato union select distinct 'P' as estado, zona, ano, campana , contrato from comisiones.viru as viru where zona =3D :zona and ano =3D :ano and campana =3D :campana and tipo in ('10', '20') and subtipo in ('01') and contrato not in ( select distinct contrato from comisiones.avon as avon where zona =3D :zona and ano =3D :ano and campana =3D :campana and tipo in ('10', '20') and subtipo in ('01') ) group by zona, ano, campana , contrato union SELECT DISTINCT 'P' as estado, avon.zona as zona, avon.ano as ano , avon.campana as campana , avon.contrato FROM comisiones.avon as avon, comisiones.viru as viru WHERE ( avon.zona =3D viru.zona ) and ( avon.contrato =3D viru.contrato ) and ( avon.ano =3D viru.ano ) and ( avon.campana =3D viru.campana ) and avon.zona =3D :zona and avon.ano =3D :ano and avon.campana =3D :campana and ( ( avon.tipo in ('10', '20') and avon.subtipo in ('01') ) and ( viru.tipo in ('10', '20') and viru.subtipo in ('01') )) *****