Re: Re: Re: PgBoolean

<[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <20021121163100.CALS3748.out003.verizon.net@[127.0.0.1]>
> The problem is that you are testing the PgResultSet object, not the PgBoolean.  The PgResultSet will always test true unless it's empty.
> 
> Try doing the following:
> 
>     if retval[0]:
>         print "Yes"
>     else:
>         print "No"
> 

That was the problem. Thanks for your help guys.
reply (application/pgp-signature, 1.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.