From: | "sandhya" <sandhyar(at)amiindia(dot)co(dot)in> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Shashi Gireddy" <gireddy(at)gmail(dot)com>, "postgre" <pgsql-admin(at)postgresql(dot)org> |
Subject: | error codes in postgresql |
Date: | 2005-08-17 10:19:02 |
Message-ID: | 007301c5a315$1cf97b80$cd00000a@amiindiahjwbgh |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi,
I want to know ,if there is any way to return error codes/numbers as a return value from the postgresql functions.
For ex:
If i am using my connection function say,
DbConnect(dname,uname,.........)
{
//here i use postgres connection function
pg_conn *conn;
conninfo="dbname=example(dname) user=postgres(uname)";
conn=PQConnectdb(conninfo)
//After connecting i need to create a table..and if the table exists
PQerrormessage(conn) will return error message...
But what i need is ..
Is there any other way of returning error number to my main program.
Can you please tell me how to handle these errors in my application.
I referred posgresql site..I didn't get any clear idea of it.
Any help please......
Thank you...
Regards,
Sandhya R
From | Date | Subject | |
---|---|---|---|
Next Message | Sivakumar K | 2005-08-17 12:19:30 | Re: error codes in postgresql |
Previous Message | sandhya | 2005-08-17 08:09:23 | error numbers in postgresql |