Re: [DB] Suggestion for field types
| From: | Paul M Jones | Date: | Thu, 08 Jan 2004 15:46:56 +0000 |
| Subject: | Re: [DB] Suggestion for field types | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24892@lists.php.net to get a copy of this message | ||
On Jan 8, 2004, at 4:58 AM, Peter wrote:
Is there a mechanism in pear DB to ask about the generic field type? Eg. the following would be useful: ... $i = ... column number of result if ($result->isNumber($i)) ... code to right justify result if ($result->isChar($i)) ... code to quote/do case conversion etc. ... This would avoid having to worry about strange types like bpchar, SQLSMINT, int2. My feeling is the native types should in fact be entirely invisible via PEAR - that's what the native API's are for.Hey, funny you should mention that -- something similar is in the validation methods for DB_Table proposal. ;-) -- Paul M. Jones Savant: the simple alternative to Smarty. http://phpsavant.com/