DB_DataObject in CVS (q and a)
| From: | Paul M Jones | Date: | Mon, 03 Nov 2003 01:24:39 +0000 |
| Subject: | DB_DataObject in CVS (q and a) | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-23199@lists.php.net to get a copy of this message | ||
(this is copied from the DB_Simple thread)
[Alan]
[Paul]? - The new DB_DataObject_Cast was designed to do this for 'writing' DB_DataObject_Cast::blob() DB_DataObject_Cast::date() DB_DataObject_Cast::sql()
[Alan]... they're not in the current package (or at least not standing-out in the documentation), so I can't say one way or another if they do the trick for me. I look forward to their inclusion or documentation the next time around.
As usual it's in CVS, I was waiting on some feedback to make sure the other changes that are in CVS are working OK (which seems to be the case) The top of this gives a few usage examples.. http://cvs.php.net/annotate.php/pear/DB_DataObject/DataObject/Cast.php?rev=1.5[Paul] Nice -- although how does one write a portable SQL query against an unknown database storage format when (e.g.) a date may be stored as yyyy-mm-dd, yy-mm-dd, dd/mm/yyyy, etc? Does the developer have to cast every date and time variable to be used in a query? It seems to be the case with MDB. _______________________________________________________________________ Paul M. Jones Savant: the simple alternative to Smarty. http://phpsavant.com/