pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject:  [ psqlodbc-Bugs-1000495 ] duplicate key causes HY000 SQL-State
Date: Wed, 21 Dec 2005 14:17:39 +0000 (GMT)
Message-ID: <20051221141739.79E181125052@pgfoundry.org> (raw)

Bugs item #1000495, was opened at 2005-12-21 08:27
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000495&group_id=1000125

Category: None
Group: None
>Status: Closed
Resolution: Accepted
Priority: 3
Submitted By: Tom Zschockelt (toz)
Assigned to: Ludek Finstrle (luf)
Summary: duplicate key causes HY000 SQL-State

Initial Comment:
while inserting a row into an table with primary key 
the current snapshot ( 8.01.01.05 ) returns a wrong sqlstate HY000
instead of 
the 8.01.01.02 driver which returns a 23005 sqlstate (which is correct)

e.g. 

create table test1 (
 field1 int2 primary key,
 field2 varchar(10) null
);

insert into test1 (field1, field2) values ( 1, 'test');
insert into test1 (field1, field2) values ( 1, 'another test');

AFAIK the second insert should return with SQL_ERROR and sqlstate 23000 or 23005.




----------------------------------------------------------------------

Comment By: Tom Zschockelt (toz)
Date: 2005-12-21 14:56

Message:
Your fix works well for my needs.

Thanks


----------------------------------------------------------------------

Comment By: Ludek Finstrle (luf)
Date: 2005-12-21 13:36

Message:
The 8.01.0102 driver returns 23505 sqlstate.
I fix the problem in 8.01.0105. I attach working DLLs.

Please try and report if it's ok or not ok.

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000495&group_id=1000125



view thread (5+ messages)

Message-ID: <20051221141739.79E181125052@pgfoundry.org>
Permalink:  ../20051221141739.79E181125052@pgfoundry.org/
Also on:    postgresql.org/message-id/20051221141739.79E181125052@pgfoundry.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: noreply@pgfoundry.org
  Subject: Re: [ psqlodbc-Bugs-1000495 ] duplicate key causes HY000 SQL-State
  In-Reply-To: <20051221141739.79E181125052@pgfoundry.org>
  References: <20051221141739.79E181125052@pgfoundry.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox