cvs: pear /MDB parser.php
| From: | Christian Dickmann | Date: | Fri, 23 Aug 2002 14:39:13 +0000 |
| Subject: | cvs: pear /MDB parser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5909@lists.php.net to get a copy of this message | ||
dickmann Fri Aug 23 10:39:13 2002 EDT
Modified files:
/pear/MDB parser.php
Log:
another small fix
Index: pear/MDB/parser.php
diff -u pear/MDB/parser.php:1.19 pear/MDB/parser.php:1.20
--- pear/MDB/parser.php:1.19 Fri Aug 23 10:35:16 2002
+++ pear/MDB/parser.php Fri Aug 23 10:39:13 2002
@@ -42,7 +42,7 @@
// | Author: Christian Dickmann <dickmann@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: parser.php,v 1.19 2002/08/23 14:35:16 dickmann Exp $
+// $Id: parser.php,v 1.20 2002/08/23 14:39:13 dickmann Exp $
//
require_once "XML/Parser.php";
@@ -193,7 +193,9 @@
if (!isset($this->table['FIELDS'][$field_name])) {
$this->raiseError($xp, 'index field
"'.$field_name.'" does not exist');
}
- if
(!isset($this->table['FIELDS'][$field_name]['notnull'])) {
+ if
(!(isset($this->table['FIELDS'][$field_name]['notnull'])
+ &&
$this->table['FIELDS'][$field_name]['notnull'] == 1))
+ {
$this->raiseError($xp, 'index field
"'.$field_name.'" has to be "notnull"');
}
}