cvs: pear /MDB/MDB Common.php mysql.php

From: Date: Wed, 25 Dec 2002 16:01:39 +0000
Subject: cvs: pear /MDB/MDB Common.php mysql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7960@lists.php.net to get a copy of this message
lsmith Wed Dec 25 11:01:39 2002 EDT Modified files: /pear/MDB/MDB mysql.php Common.php Log: commit fixed bug when no type is given Index: pear/MDB/MDB/mysql.php diff -u pear/MDB/MDB/mysql.php:1.62 pear/MDB/MDB/mysql.php:1.63 --- pear/MDB/MDB/mysql.php:1.62 Fri Dec 20 13:10:22 2002 +++ pear/MDB/MDB/mysql.php Wed Dec 25 11:01:38 2002 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.62 2002/12/20 18:10:22 lsmith Exp $ +// $Id: mysql.php,v 1.63 2002/12/25 16:01:38 lsmith Exp $ // require_once 'MDB/Common.php'; @@ -538,7 +538,7 @@ * Name of the type of the field. Currently, all types Metabase * are supported except for clob and blob. * - * Default: text + * Default: no type conversion * * Null * Boolean property that indicates that the value for this field @@ -616,6 +616,8 @@ return $this->raiseError(MDB_ERROR_CANNOT_REPLACE, '', '', 'no supported type for field "' . $name . '" specified'); } + } else { + $value = $fields[$name]['Value']; } } $values .= $value; Index: pear/MDB/MDB/Common.php diff -u pear/MDB/MDB/Common.php:1.82 pear/MDB/MDB/Common.php:1.83 --- pear/MDB/MDB/Common.php:1.82 Fri Dec 20 13:10:22 2002 +++ pear/MDB/MDB/Common.php Wed Dec 25 11:01:38 2002 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.82 2002/12/20 18:10:22 lsmith Exp $ +// $Id: Common.php,v 1.83 2002/12/25 16:01:38 lsmith Exp $ /** * @package MDB @@ -1482,7 +1482,7 @@ * Name of the type of the field. Currently, all types Metabase * are supported except for clob and blob. * - * Default: text + * Default: no type conversion * * Null * Boolean property that indicates that the value for this field @@ -1565,6 +1565,8 @@ return $this->raiseError(MDB_ERROR_CANNOT_REPLACE, '', '', 'no supported type for field "' . $name . '" specified'); } + } else { + $value = $fields[$name]['Value']; } } $update .= '=' . $value;

« previous php.pear.cvs (#7960) next »