summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-01-09 03:12:17 +0200
committermonty@mashka.mysql.fi <>2003-01-09 03:12:17 +0200
commita10178493005b3fa69163ef39c6a58fe9ff6658b (patch)
treeff7bb0ccddd4123d19c48b358009fc7e8a14adcd
parent446a6b934fbeb4c3ebd61fff4623f5043907d0ba (diff)
downloadmariadb-git-a10178493005b3fa69163ef39c6a58fe9ff6658b.tar.gz
Add TYPE as an alias for specifying key type
-rw-r--r--sql/sql_yacc.yy1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index bcee15c13cf..77325bad3a0 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -1356,6 +1356,7 @@ opt_unique_or_fulltext:
key_alg:
/* empty */ { $$= HA_KEY_ALG_UNDEF; }
| USING opt_btree_or_rtree { $$= $2; };
+ | TYPE opt_btree_or_rtree { $$= $2; };
opt_btree_or_rtree:
BTREE_SYM { $$= HA_KEY_ALG_BTREE; }