Received: from ns1.aktrad.ru (ns1.aktrad.ru [195.218.140.4]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA17982 for ; Wed, 19 Apr 2000 09:39:10 -0400 (EDT) (envelope-from hook@aktrad.ru) Received: from sloth (sloth.aktrad.ru [195.218.140.13]) by ns1.aktrad.ru (8.9.3/8.9.3) with SMTP id RAA46425 for ; Wed, 19 Apr 2000 17:38:39 +0400 (MSD) Message-ID: <13e801bfaa04$95bd5e70$0d8cdac3@aktrad.ru> From: "Gene Sokolov" To: Subject: ODBC not reporting RI violations. Date: Wed, 19 Apr 2000 17:38:45 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200004/148 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.