summaryrefslogtreecommitdiff
path: root/sql/lex.h
diff options
context:
space:
mode:
authormikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se <>2006-04-10 10:00:08 -0400
committermikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se <>2006-04-10 10:00:08 -0400
commit6e16cfa01d2dcc14e2312f5728846d030af1f6be (patch)
tree414cafee77fc081d5d3fb04242ca6d6b17d07e58 /sql/lex.h
parentba5d08f340b951001bdd4c2a92b0344bace538cb (diff)
downloadmariadb-git-6e16cfa01d2dcc14e2312f5728846d030af1f6be.tar.gz
BUG#15561: Possible to strange things with partitions defined although no partition support compiled in
Added an #ifdef to ensure we get syntax error when using partitioned synytax and no partition support is compiled in.
Diffstat (limited to 'sql/lex.h')
-rw-r--r--sql/lex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/lex.h b/sql/lex.h
index 9f0c6c4f8b7..d22a56034c5 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -390,9 +390,11 @@ static SYMBOL symbols[] = {
{ "PACK_KEYS", SYM(PACK_KEYS_SYM)},
{ "PARSER", SYM(PARSER_SYM)},
{ "PARTIAL", SYM(PARTIAL)},
+#ifdef WITH_PARTITION_STORAGE_ENGINE
{ "PARTITION", SYM(PARTITION_SYM)},
{ "PARTITIONING", SYM(PARTITIONING_SYM)},
{ "PARTITIONS", SYM(PARTITIONS_SYM)},
+#endif
{ "PASSWORD", SYM(PASSWORD)},
{ "PHASE", SYM(PHASE_SYM)},
{ "PLUGIN", SYM(PLUGIN_SYM)},