Re: Datagrid followup
| From: | Bertrand Mansion | Date: | Fri, 19 Apr 2002 14:32:02 +0000 |
| Subject: | Re: Datagrid followup | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5675@lists.php.net to get a copy of this message | ||
le 19/04/02 15:01, Markus Wolff à wolff@21st.de a écrit :
> Am Fri, 19 Apr 2002 14:16:15 +0200 schrieb Bertrand Mansion
> <bmansion@mamasam.com>:
>
>> Is there a way, using PEAR DB, to get field type info, like PHPLib used to
>> do it with Metadata ?
>>
>> If so, this could be used to create the right widgets for inputs when in
>> edit mode.
>
> My thought exactly! And yes, there is a possibility:
> http://pear.php.net/manual/en/core.db.tableinfo.php
>
> But unfortunately, this won´t work with InterBase, Informix, mSQL,
> Oracle8, ODBC and Sybase. While I can mostly live with that, Oracle8 and
> ODBC not working with this is pretty sad.
>
> My compromise would be to make the widget types for all fields
> self-configurable but preset them with the appropriate types when using
> a database that makes this information available.
I am coding the oracle tableinfo() method right now.
I hope it will be finished this evening...
Bertrand Mansion
Mamasam