Re: DB & MDB2 Portability
| From: | Lukas Smith | Date: | Thu, 02 Mar 2006 08:30:24 +0000 |
| Subject: | Re: DB & MDB2 Portability | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23192@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
http://cvs.php.net/viewcvs.cgi/*checkout*/pear/MDB2/docs/datatypes.html MDB2 does require that you use the appropriate datatypes inside the RDBMS in order to do the mapping reliably. If you really care about portability the best thing to do is to use MDB2_Schema to reverse engineer your current schema into the MDB2 xml schema format. Then you can recreate your database using compatible datatypes. There might be little changes here and there. Like MySQL TIMESTAMP needs to be converted to DATETIME etc. regards, LukasI see that there is support for datetime columns, but not some others, like timestamp, null fields (for Oracle), booleans, CLOB's, Decimals, etc.Umm...huh? MDB2 has full support for BLOBs (and I assume CLOBS) as well as dates, numbers, etc. Where are you looking for this? It *may* not be implemented for each of the DB backends, but this can always be improved.