cvs: pear /MDB parser.php
| From: | Lukas Smith | Date: | Mon, 12 Aug 2002 12:39:21 +0000 |
| Subject: | cvs: pear /MDB parser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5706@lists.php.net to get a copy of this message | ||
lsmith Mon Aug 12 08:39:21 2002 EDT
Modified files:
/pear/MDB parser.php
Log:
made the start tag in the sequence definition optinal just as it is specified in the manual
Index: pear/MDB/parser.php
diff -u pear/MDB/parser.php:1.9 pear/MDB/parser.php:1.10
--- pear/MDB/parser.php:1.9 Thu Aug 1 14:26:01 2002
+++ pear/MDB/parser.php Mon Aug 12 08:39:20 2002
@@ -42,9 +42,11 @@
// | Author: Manuel Lemos <mlemos@acm.org> |
// +----------------------------------------------------------------------+
//
-// $Id: parser.php,v 1.9 2002/08/01 18:26:01 lsmith Exp $
+// $Id: parser.php,v 1.10 2002/08/12 12:39:20 lsmith Exp $
//
+require_once 'PEAR.php';
+
/**
* Parses an XML schema file
*
@@ -895,12 +897,7 @@
);
}
$sequence_definition['start'] = $start;
- } else {
-
return($this->setParserError($database_tags['sequence'][$sequence],
- 'it was not specified a valid sequence start value')
- );
- }
- if (isset($sequence_tags['on'])) {
+ } if (isset($sequence_tags['on'])) {
if (count($sequence_tags['on']) > 1) {
return($this->setParserError($sequence_tags['on'][1],
'it was defined the sequence on section more than
once')
@@ -937,6 +934,8 @@
'table' => $table,
'field' => $field
);
+ } else {
+ $sequence_definition['start'] = 1;
}
$this->database['SEQUENCES'][$sequence_values['name']] =
$sequence_definition;
}