Home > Archive > PostgeSQL ODBC > December 2005 > [ psqlodbc-Bugs-1000495 ] duplicate key causes HY000 SQL-State









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [ psqlodbc-Bugs-1000495 ] duplicate key causes HY000 SQL-State
noreply@pgfoundry.org

2005-12-21, 7:23 am

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

Category: None
Group: None
Status: Open
>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: 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=...roup_id=1000125

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com