cvs: pear /DB_DataObject/DataObject Generator.php
| From: | Alan Knowles | Date: | Fri, 28 Oct 2005 01:13:23 +0000 |
| Subject: | cvs: pear /DB_DataObject/DataObject Generator.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35915@lists.php.net to get a copy of this message | ||
alan_k Thu Oct 27 21:13:23 2005 EDT
Modified files:
/pear/DB_DataObject/DataObject Generator.php
Log:
fix bug #5800 - continue creating other tables if we find one that fails...
http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject/Generator.php?r1=1.102&r2=1.103&ty=u
Index: pear/DB_DataObject/DataObject/Generator.php
diff -u pear/DB_DataObject/DataObject/Generator.php:1.102
pear/DB_DataObject/DataObject/Generator.php:1.103
--- pear/DB_DataObject/DataObject/Generator.php:1.102 Tue Oct 11 22:12:01 2005
+++ pear/DB_DataObject/DataObject/Generator.php Thu Oct 27 21:13:20 2005
@@ -15,7 +15,7 @@
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Generator.php,v 1.102 2005/10/12 02:12:01 alan_k Exp $
+ * @version CVS: $Id: Generator.php,v 1.103 2005/10/28 01:13:20 alan_k Exp $
* @link http://pear.php.net/package/DB_DataObject
*/
@@ -210,8 +210,9 @@
$defs = $__DB->tableInfo($table);
if (is_a($defs,'PEAR_Error')) {
- echo $defs->toString();
- exit;
+ // running in debug mode should pick this up as a big warning..
+ $this->raiseError('Error reading tableInfo, '. $defs->toString());
+ continue;
}
// cast all definitions to objects - as we deal with that better.