Re: [PATCH] DB_DataObject support for PostgreSQL casts

From: Date: Thu, 02 Oct 2003 22:11:34 +0000
Subject: Re: [PATCH] DB_DataObject support for PostgreSQL casts
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22330@lists.php.net to get a copy of this message
On Thursday October 2 2003 12:16 pm, Ian Eure wrote: > 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. > Fixed patch is attached, array_key_exists() was called before checking if $this->_cast was an array.

Attachment: [text/x-diff] DB_DataObject-psql-cast.patch
« previous php.pear.dev (#22330) next »