How to get the real postgreql error from visual basic - Mailing list pgsql-general

From dfx
Subject How to get the real postgreql error from visual basic
Date
Msg-id 2EB96675DFFD4D2E9CD8F82CC414C73C@athlon
Whole thread Raw
Responses R: How to get the real postgreql error from visual basic
List pgsql-general
Dear Sirs,

when I execute a function that returns an error, visual basic shows always
the same error code ( -214767259) but I would like to know the real postgres
code of the error.

The visual basic code that I use is the following:

Dim Cmd As new ADODB.Command
Cmd.CommandText = "delete from <tablename> where id=<some_number>;"
Cmd.ActiveConnection = mvarConnection
Cmd.Execute

Whichever error appens the visual basic Err object returns the same number.


What I have to do?

Any suggestion will be appreciated.

Domenico


pgsql-general by date:

Previous
From: aravind chandu
Date:
Subject: Getting data from Xml to Postgresql database
Next
From: "Andrej Ricnik-Bay"
Date:
Subject: Re: Problems Restarting PostgreSQL Daemon