cvs: pear /MDB parser.php
| From: | Lukas Smith | Date: | Mon, 10 Jun 2002 21:19:04 +0000 |
| Subject: | cvs: pear /MDB parser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4536@lists.php.net to get a copy of this message | ||
lsmith Mon Jun 10 17:19:04 2002 EDT
Modified files:
/pear/MDB parser.php
Log:
fixed a bug in the table intitialization
Index: pear/MDB/parser.php
diff -u pear/MDB/parser.php:1.4 pear/MDB/parser.php:1.5
--- pear/MDB/parser.php:1.4 Thu May 30 10:27:40 2002
+++ pear/MDB/parser.php Mon Jun 10 17:19:03 2002
@@ -2,7 +2,7 @@
/*
* parser.php
*
- * @(#) $Header: /usr/repository/pear/MDB/parser.php,v 1.4 2002/05/30 14:27:40 lsmith Exp $
+ * @(#) $Header: /usr/repository/pear/MDB/parser.php,v 1.5 2002/06/10 21:19:03 lsmith Exp $
*
*/
@@ -191,7 +191,7 @@
return(1);
}
- function ValidateFieldValue(&$field, &$value, $value_type, $path)
+ function validateFieldValue(&$field, &$value, $value_type, $path)
{
switch($field["type"])
{
@@ -397,6 +397,7 @@
{
return($this->setParserError("0", "it were not specified any
database tables"));
}
+
for($table = 0; $table < $tables; $table++) {
$table_definition = array("FIELDS" => array());
if (!$this->parseProperties($database_tags["table"][$table],
@@ -720,7 +721,7 @@
$instruction_element < $instruction_elements;
$instruction_element++)
{
- $instruction_element_path =
$table_tags["initialization"][0].", $instruction_element";
+ $instruction_element_path =
$table_tags["initialization"][0].",$instruction_element";
$data = $this->xml_parser->structure[$instruction_element_path];
if (gettype($data) == "array") {
switch($data["Tag"]) {