Re: Re: Re: PgBoolean
| 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