summaryrefslogtreecommitdiff
path: root/sql/lex.h
diff options
context:
space:
mode:
authorunknown <mikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-04-10 10:00:08 -0400
committerunknown <mikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-04-10 10:00:08 -0400
commit8386cfd73ea0ba44ce4743674eb7569cf3c543c0 (patch)
tree414cafee77fc081d5d3fb04242ca6d6b17d07e58 /sql/lex.h
parenta514095a5d306fead8d22d03a39c83db18d98ef8 (diff)
downloadmariadb-git-8386cfd73ea0ba44ce4743674eb7569cf3c543c0.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. sql/lex.h: 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)},