Re: [DB] Suggestion for field types
| From: | Peter | Date: | Fri, 09 Jan 2004 22:24:31 +0000 |
| Subject: | Re: [DB] Suggestion for field types | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24943@lists.php.net to get a copy of this message | ||
So how about adding two new elements to the array returned by tableInfo():
'generictype' (or 'peartype'?) which will contain one of a basic set of
types
'nativetype' which will contain the type name as used in the create table
command by the specific backend
and pear-haps also 'sqltype', for the closest SQL-99 column type.
This will not break code that looks for 'type', and will allow the various
implementations of tableInfo() to start standardising.
Kind regards,
Peter