Re: pg_result_status() alternative?

2009-01-07 Thread Qian Xu
Gerhard Häring wrote: > What are you testing, really? "Normal" Python code should use a > PostgreSQL DB-API module or a wrapper on top of it, like SQLAlchemy. > > Generally, you shouldn't have to drop down to protocol-level functions, > unless you're developing a PostgreSQL adapter yourself. > >

Re: pg_result_status() alternative?

2009-01-07 Thread Gerhard Häring
Qian Xu wrote: Steve Holden wrote: 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. result status is not an exception. It means the information of

Re: pg_result_status() alternative?

2009-01-07 Thread Qian Xu
Steve Holden wrote: > 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. result status is not an exception. It means the information of frontend/bac

Re: pg_result_status() alternative?

2009-01-07 Thread Steve Holden
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://w

pg_result_status() alternative?

2009-01-06 Thread Qian Xu
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

pg_result_status

2008-12-22 Thread Qian Xu
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