Received: from gauss.deltav.hu (mail.deltav.hu [194.9.64.225]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA80212 for ; Wed, 19 Apr 2000 14:43:16 -0400 (EDT) (envelope-from ltibor@mail.tiszanet.hu) Received: from tir (98.dial02.deltav.hu [194.9.64.98]) by gauss.deltav.hu (Netscape Messaging Server 3.6) with SMTP id AAA127E; Wed, 19 Apr 2000 20:43:46 +0200 From: Tibor Laszlo To: "Gene Sokolov" Subject: Re: ODBC not reporting RI violations. Date: Wed, 19 Apr 2000 20:47:33 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <13e801bfaa04$95bd5e70$0d8cdac3@aktrad.ru> In-Reply-To: <13e801bfaa04$95bd5e70$0d8cdac3@aktrad.ru> Cc: pgsql-interfaces@postgresql.org MIME-Version: 1.0 Message-Id: <00041920504200.01171@tir> Content-Transfer-Encoding: 8bit X-Archive-Number: 200004/155 > PGSQL 7.0beta5, freebsd 4.0 > MS WinNT ODBC driver 6.50.00.00 > > Seems like there is a problem in the way RI violations are reported through > ODBC. > > If I execute the following query in psql, I get an error (which is correct): > > afmt=# INSERT INTO > Orders(AccNum,Type,OpenTS,RefPosition,ItemID,IsBuy,Lots,OrdPrice,StpPrice,Lm > tPrice,Expires) > VALUES(1,1,'19 Apr 2000 15:17:46',0,4,1,1,104.30,0.,0.,'20 Apr 2000 > 00:00:00'); > > ERROR: referential integrity violation - key referenced from > orders not found in positions > > But if the same query is executed through ODBC, the error is not reported, > the query just gets silently ignored. ODBC reports success, when in reality > the query was aborted. > > All other errors are reported properly. This seems to be specific to RI > violations. > > Gene Sokolov. Yes. We reported the same things some weeks ago. Now there is a patch for correcting this, I sent to Thomas, maybe found in current CVS in the ODBC driver subtree. (Thomas is out of town for two weeks.) If urgent, we may send the patch to the INTERFACES list. Regards, Zoltan (Tibor's friend)