projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd5215a
)
SQL/Parser.php
author
Alan Knowles
<alan@akkbhome.com>
Sun, 13 Feb 2011 12:43:56 +0000
(20:43 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Sun, 13 Feb 2011 12:43:56 +0000
(20:43 +0800)
SQL/Parser.php
patch
|
blob
|
history
diff --git
a/SQL/Parser.php
b/SQL/Parser.php
index
e5c91a2
..
4b893f5
100755
(executable)
--- a/
SQL/Parser.php
+++ b/
SQL/Parser.php
@@
-1208,7
+1208,13
@@
class SQL_Parser
//print_r($action);
break;
case 'index':
- // alter table xxx add index(a,b,c);
+ // alter table xxx add index indexname(a,b,c);
+ $this->getTok();
+ $action['name'] = $this->lexer->tokText;
+ $this->getTok();
+ if ($this->token != '(') {
+ $this->raiseError("Expecting '(', got : ". $this->token);
+ }