cvs: pear /MDB2_Schema/MDB2/Schema Parser.php
| From: | Lukas Smith | Date: | Sat, 29 Oct 2005 11:26:35 +0000 |
| Subject: | cvs: pear /MDB2_Schema/MDB2/Schema Parser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35948@lists.php.net to get a copy of this message | ||
lsmith Sat Oct 29 07:26:35 2005 EDT
Modified files:
/pear/MDB2_Schema/MDB2/Schema Parser.php
Log:
- support column length in create index (mysql only feature, but a nice touch, emulating it with
substring is not feasible though)
http://cvs.php.net/diff.php/pear/MDB2_Schema/MDB2/Schema/Parser.php?r1=1.19&r2=1.20&ty=u
Index: pear/MDB2_Schema/MDB2/Schema/Parser.php
diff -u pear/MDB2_Schema/MDB2/Schema/Parser.php:1.19 pear/MDB2_Schema/MDB2/Schema/Parser.php:1.20
--- pear/MDB2_Schema/MDB2/Schema/Parser.php:1.19 Tue Oct 18 19:42:00 2005
+++ pear/MDB2_Schema/MDB2/Schema/Parser.php Sat Oct 29 07:26:35 2005
@@ -42,7 +42,7 @@
// | Author: Christian Dickmann <dickmann@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Parser.php,v 1.19 2005/10/18 23:42:00 dufuz Exp $
+// $Id: Parser.php,v 1.20 2005/10/29 11:26:35 lsmith Exp $
//
require_once 'XML/Parser.php';
@@ -728,6 +728,14 @@
$this->field['sorting'] = $data;
}
break;
+ /* Add by Leoncx */
+ case 'database-table-declaration-index-field-length':
+ if (array_key_exists('length', $this->field)) {
+ $this->field['length'] .= $data;
+ } else {
+ $this->field['length'] = $data;
+ }
+ break;
/* Sequence declaration */
case 'database-sequence-name':
@@ -769,4 +777,4 @@
}
}
-?>
\ No newline at end of file
+?>