[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-sql
Subject:    [SQL] Error code for database down
From:       dnaren () hss ! hns ! com
Date:       2002-12-18 15:58:01
[Download RAW message or body]



HI...

     When i executed a query using PQexec..It returned error.
     Is there any way to check this error is because of Database is down.

     like
     PGRES_EMPTY_QUERY -- The string sent to the backend was empty.
     PGRES_COMMAND_OK -- Successful completion of a command returning no
data
     PGRES_TUPLES_OK -- The query successfully executed
                etc......

     Like this is there any value which will specify the database
failure?????

Thanks in advance
 -Naren.



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic