[PATCH] DB_DataObject support for PostgreSQL casts
| From: | Ian Eure | Date: | Thu, 02 Oct 2003 19:16:01 +0000 |
| Subject: | [PATCH] DB_DataObject support for PostgreSQL casts | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-22328@lists.php.net to get a copy of this message | ||
Enclosed is a patch to allow casting fields for PostgreSQL. In order to handle
bytea fields (akin to MySQL's BLOB type) in PostgreSQL 7.2 and 7.2.1,
insert/updates must have '::bytea' appended to the value.
This adds a class var, $_casts, which contains the casts on a per-field basis
and an addCast() method.
Patch is attached.
Attachment: [text/x-diff] DB_DataObject-psql-cast.patch
Attachment: [text/x-diff] DB_DataObject-psql-cast.patch