Misleading HRESULT from INSERT

Report PGNP bugs.

Misleading HRESULT from INSERT

Postby kenn@kero.dk » Tue Sep 28, 2010 1:05 pm

Hi

When performing an insert I get the following (When inserting a duplicate key):
OLE DB Error Record dump for hr = 0x80004005
Row #: 0 Source: "PostgreSQL Native Provider" Description: "ERROR: duplicate key value violates unique constraint "runtimeevents_pkey"
DETAIL: Key (eventtypeid, variableid, "time")=(646a7f58-4e39-4944-b756-ba4770b42ce0, 6b3838f6-f534-4854-8e03-0ed41781dddf, 2010-08-24 06:48:06) already exists.
" Help File: "(null)" Help Context: 0 GUID: {0C733A05-2A1C-11CE-ADE5-00AA0044773D}
OLE DB Error Record dump end

Shouldn't the error code be DB_E_INTEGRITYVIOLATION ?

Rgs
Kenn Roland
kenn@kero.dk
 
Posts: 3
Joined: Fri Sep 24, 2010 2:29 am

Re: Misleading HRESULT from INSERT

Postby Moderator » Thu Sep 30, 2010 6:48 pm

Hello Kenn,
the defect is fixed in build 2192.

Thank you for reporting it :)
User avatar
Moderator
Site Admin
 
Posts: 302
Joined: Wed Oct 29, 2008 11:27 pm

Re: Misleading HRESULT from INSERT

Postby kenn@kero.dk » Sun Oct 10, 2010 11:41 pm

Hi

I can't seem to find 2192 on the web site ?
kenn@kero.dk
 
Posts: 3
Joined: Fri Sep 24, 2010 2:29 am

Re: Misleading HRESULT from INSERT

Postby Moderator » Mon Oct 11, 2010 9:55 pm

Hi Kenn,
we have sent the download link to you.

Kind regards,
PGNP Team
User avatar
Moderator
Site Admin
 
Posts: 302
Joined: Wed Oct 29, 2008 11:27 pm


Return to Report Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron