From yudha@BonBon.net Wed Jan 29 06:34:34 2003 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2C6EE477348 for ; Wed, 29 Jan 2003 01:34:34 -0500 (EST) Received: from rizzo.jerky.net (rizzo.jerky.net [204.57.55.99]) by postgresql.org (Postfix) with ESMTP id 6CA6447A20A for ; Wed, 29 Jan 2003 00:13:16 -0500 (EST) Received: from bonbon.net (kubrick.hotpop.com [204.57.55.16]) by rizzo.jerky.net (Postfix) with SMTP id CFB493490F for ; Wed, 29 Jan 2003 05:09:15 +0000 (UTC) Received: from yudha (unknown [61.5.117.59]) by smtp-2.hotpop.com (Postfix) with SMTP id 4E3B61B94B7 for ; Wed, 29 Jan 2003 04:47:22 +0000 (UTC) Message-ID: <008401c2c752$188ec290$ea00a8c0@yudha> From: "Yudha Setiawan" To: Subject: Error Code Date: Wed, 29 Jan 2003 11:50:40 +0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007D_01C2C78C.A54C5FF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/325 X-Sequence-Number: 7167 This is a multi-part message in MIME format. ------=_NextPart_000_007D_01C2C78C.A54C5FF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Milist; My Application is Developed by Delphi=20 with Ms-SQL Server as a previous Database=20 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=20 The Error Code from PostgreSQL. Because Our users need to know what=20 exactly errors is going on. We Used to=20 be using the BDE Error Code to Let=20 the Users know the specific Error. We Have an BDE_ERR_CODE tables=20 ------------------------------------------------- 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=20 No. : 01119311223344 ------=_NextPart_000_007D_01C2C78C.A54C5FF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Milist;
 
My Application is Developed by Delphi
with Ms-SQL Server as a previous Database
and we are using ODBC/BDE&nbs= p;(Borland=20 Database Engine)
for Database connection. And We've= been=20 porting
the database to PostgreSQL. So far= so=20 Good.
 
And now our problem is How do we get
The Error Code from=20 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= =20 Error.
We Have an BDE_ERR_CODE tables=20
 
-------------------------------------------------
fc_error  | =20 fc_description
-------------------------------------------------
9729      |  You cannot in= sert=20 the duplicate code
0001      |  Bla....bla...=
0002      | =20 Blu....blu...
0003      | =20 Bli....bli...
-------------------------------------------------
 
But PostgreSQL have the same BDE&n= bsp;Error=20 Code for
every Error. The number is 13059. And we cannot
make a different for every single= =20 errors.
 
Somebody please give me some=20 explanation.
 
 
 
 
 
Yudha Setiawan.
VoIP=20
    No.        :=20 01119311223344
------=_NextPart_000_007D_01C2C78C.A54C5FF0-- From ajoshi@nulinkinc.com Fri May 30 10:50:37 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 31AB492541E for ; Fri, 30 May 2003 06:50:37 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 67664-03 for ; Fri, 30 May 2003 06:49:41 -0400 (EDT) Received: from TactiCom-MA1.TactiCom.com (unknown [216.235.244.20]) by developer.postgresql.org (Postfix) with SMTP id 644029250E8 for ; Fri, 30 May 2003 06:49:31 -0400 (EDT) Received: from [203.124.133.194] by TactiCom-MA1.Nulinkinc.com (NTMail 4.30.0013/NU4135.00.d4f82e0c) with ESMTP id nvodiaaa for ; Fri, 30 May 2003 06:48:50 -0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C32699.0DE2C4FC" Subject: Error code. X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Fri, 30 May 2003 16:18:50 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Error code. Thread-Index: AcMmmMD5uz+Y2JKJEdedkABABabtaA== From: "Anagha Joshi" To: X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/415 X-Sequence-Number: 8977 This is a multi-part message in MIME format. ------_=_NextPart_001_01C32699.0DE2C4FC Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi, Is there any way to get error code from 'PgDatabse::Exec' call? PgDatabase::ErrorMessage() explains error message finely.=20 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. =20 Urgent help needed. =20 Thx, Anagha =20 ------_=_NextPart_001_01C32699.0DE2C4FC Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi,

Is there any way to get error code from ‘= ;PgDatabse::Exec’ call? PgDatabase::ErrorMessage() explains error message finel= y.

i.e. = if errorMessage() calls returns string like : ‘cannot extend trap: No space left on device’<= /b>

then  can I get erro= r 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

 

=00 ------_=_NextPart_001_01C32699.0DE2C4FC--