Re: Pear::DB automatic cast of booleans
| From: | Lukas Smith | Date: | Wed, 18 May 2005 14:32:05 +0000 |
| Subject: | Re: Pear::DB automatic cast of booleans | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19258@lists.php.net to get a copy of this message | ||
Tmp wrote:
When doing a fetchRow() strings, integers and null values are automatically casted to their corresponding php values. But booleans are not casted. Postgresql returns booleans as "f", "t" (or null). How do I make fetchRow automatically cast booleans to real php booleans?you will have to add your own wrapper or switch to MDB/MDB2 abstraction layers. regards, Lukas