pg_result_status() alternative?

Steve Holden steve at holdenweb.com
Wed Jan 7 12:47:27 CET 2009


Qian Xu wrote:
> Hi All,
> 
> I am using the pg module (http://www.pygresql.org/pg.html) for database
> testing.
> 
> I have got a problem now:
> I want to check the result status of postgresql database, which can be done
> in php by using pg_result_status()
> (http://www.phpbuilder.com/manual/en/function.pg-result-status.php)
> 
> How can I do the same thing in python (2.5)?
> 
Without knowing the full details of that particular module I would
hazard a guess that any database errors will raise exceptions in Python.
No exceptions means your database operation worked fine.

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list