pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Error Code
2+ messages / 2 participants
[nested] [flat]

* Error Code
@ 2003-01-29 04:50  Yudha Setiawan <yudha@BonBon.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Yudha Setiawan @ 2003-01-29 04:50 UTC (permalink / raw)
  To: pgsql-admin

Dear Milist;

 My Application is Developed by Delphi 
with Ms-SQL Server as a previous Database 
and we are using ODBC/BDE (Borland Database Engine)
for Database connection. And We've been porting
the database to PostgreSQL. So far so Good.

And now our problem is How do we get 
The Error Code from PostgreSQL.
Because Our users need to know what 
exactly errors is going on. We Used to 
be using the BDE Error Code to Let 
the Users know the specific Error.
We Have an BDE_ERR_CODE tables 

-------------------------------------------------
fc_error  |  fc_description
-------------------------------------------------
9729      |  You cannot insert the duplicate code
0001      |  Bla....bla...
0002      |  Blu....blu...
0003      |  Bli....bli...
-------------------------------------------------

But PostgreSQL have the same BDE Error Code for
every Error. The number is 13059. And we cannot
make a different for every single errors.

Somebody please give me some explanation.





Yudha Setiawan.
VoIP 
    No.        : 01119311223344

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Error code.
@ 2003-05-30 10:48  Anagha Joshi <ajoshi@nulinkinc.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Anagha Joshi @ 2003-05-30 10:48 UTC (permalink / raw)
  To: pgsql-admin

Hi,
Is there any way to get error code from 'PgDatabse::Exec' call?
PgDatabase::ErrorMessage() explains error message finely. 
i.e. if errorMessage() calls returns string like : 'cannot extend trap:
No space left on device'
then  can I get error code which explains the same ?
else I'll have to use 'strcmp'(C++ client interface) to find when device
is out of space.
 
Urgent help needed.
 
Thx,
Anagha
 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-05-30 10:48 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29 04:50 Error Code Yudha Setiawan <yudha@BonBon.net>
2003-05-30 10:48 Error code. Anagha Joshi <ajoshi@nulinkinc.com>

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