projects
/
dbsrgits/SQL-Translator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
edc4b5d
)
Smoother regex (thanks Jim Thomason).
Ken Youens-Clark [Wed, 12 Aug 2009 15:08:49 +0000 (15:08 +0000)]
lib/SQL/Translator/Parser/MySQL.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Parser/MySQL.pm
b/lib/SQL/Translator/Parser/MySQL.pm
index
81b7d24
..
38b062b
100644
(file)
--- a/
lib/SQL/Translator/Parser/MySQL.pm
+++ b/
lib/SQL/Translator/Parser/MySQL.pm
@@
-673,7
+673,7
@@
normal_index : KEY index_name_not_using(?) index_type(?) '(' name_with_opt_paren
}
index_name_not_using : QUOTED_NAME
- | /\b([^u][^s]?[^i]?[^n]?[^g]?\w*?)\b/ { $return = $1 }
+ | /(\b(?!using)\w+\b)/ { $return = $1 }
index_type : /using (btree|hash|rtree)/i { $return = uc $1 }