atom feed3 messages in net.php.lists.pear-cvs[PEAR-CVS] svn: /pear/packages/DB_Dat...
FromSent OnAttachments
Alan KnowlesJul 11, 2012 7:51 pm 
Alan KnowlesJul 11, 2012 7:58 pm 
Alan KnowlesJul 11, 2012 8:01 pm 
Subject:[PEAR-CVS] svn: /pear/packages/DB_DataObject/trunk/DB/DataObject/ Cast.php
From:Alan Knowles (ala@php.net)
Date:Jul 11, 2012 8:01:46 pm
List:net.php.lists.pear-cvs

alan_k Thu, 12 Jul 2012 03:02:00 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=326604

Log: remove blob test from stringtostring code..

Changed paths: U pear/packages/DB_DataObject/trunk/DB/DataObject/Cast.php

Modified: pear/packages/DB_DataObject/trunk/DB/DataObject/Cast.php =================================================================== --- pear/packages/DB_DataObject/trunk/DB/DataObject/Cast.php 2012-07-12 02:58:28
UTC (rev 326603) +++ pear/packages/DB_DataObject/trunk/DB/DataObject/Cast.php 2012-07-12 03:02:00
UTC (rev 326604) @@ -431,10 +431,10 @@ // perhaps we should support TEXT fields??? //

- if (!($to & DB_DATAOBJECT_BLOB)) { - return PEAR::raiseError('Invalid Cast from a
DB_DataObject_Cast::string to something other than a blob!'. - ' (why not just use native features)'); - } + // $to == a string field which is the default type (0) + // so we do not test it here. - we assume that number fields + // will accept a string?? - which is stretching it a bit ... + // should probaly add that test as some point.

switch ($db->dsn['phptype']) { case 'pgsql':