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@xxxxxxxxxxxxxxxx> |
// +----------------------------------------------------------------------+
//
-// $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@xxxxxxxxxxxxxxxx> |
// +----------------------------------------------------------------------+
//
-// $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;
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|