cvs: pear /MDB2_Schema/MDB2 Schema.php
| From: | Igor Feghali | Date: | Wed, 06 Sep 2006 00:14:00 +0000 |
| Subject: | cvs: pear /MDB2_Schema/MDB2 Schema.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41990@lists.php.net to get a copy of this message | ||
ifeghali Wed Sep 6 00:14:00 2006 UTC
Modified files:
/pear/MDB2_Schema/MDB2 Schema.php
Log:
- structure of the database definition array created by dumpDatabase() modified to match the new
one
http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/MDB2/Schema.php?r1=1.93&r2=1.94&diff_format=u
Index: pear/MDB2_Schema/MDB2/Schema.php
diff -u pear/MDB2_Schema/MDB2/Schema.php:1.93 pear/MDB2_Schema/MDB2/Schema.php:1.94
--- pear/MDB2_Schema/MDB2/Schema.php:1.93 Tue Aug 22 21:30:26 2006
+++ pear/MDB2_Schema/MDB2/Schema.php Wed Sep 6 00:14:00 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Schema.php,v 1.93 2006/08/22 21:30:26 ifeghali Exp $
+// $Id: Schema.php,v 1.94 2006/09/06 00:14:00 ifeghali Exp $
//
require_once 'MDB2.php';
@@ -2070,6 +2070,7 @@
$initialization = array();
$lob_buffer_length = $this->db->getOption('lob_buffer_length');
foreach ($data as $row) {
+ $rows = array();
foreach($row as $key => $lob) {
if (is_resource($lob)) {
$value = '';
@@ -2078,8 +2079,9 @@
}
$row[$key] = $value;
}
+ $rows[] = array('name' => $key, 'group' =>
array('type' => 'value', 'data' => $row[$key]));
}
- $initialization[] = array('type' => 'insert',
'fields' => $row);
+ $initialization[] = array('type' => 'insert',
'data' => array('field' => $rows));
}
$database_definition['tables'][$table_name]['initialization'] = $initialization;
}