Commit c85c6c07 authored by unknown's avatar unknown

Bug #20077 Cluster to only support partition by key, needs to error on others

parent 053cd2f0
--source include/have_ndb.inc --source include/have_ndb.inc
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_query_log
set new=on;
--enable_query_log
--disable_warnings --disable_warnings
drop table if exists t1; drop table if exists t1;
--enable_warnings --enable_warnings
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
drop table if exists t1; drop table if exists t1;
--enable_warnings --enable_warnings
--disable_query_log
set new=on;
--enable_query_log
# #
# Partition by range, generate node group error # Partition by range, generate node group error
# #
......
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
# #
#-- source include/have_partition.inc #-- source include/have_partition.inc
--disable_query_log
set new=on;
--enable_query_log
--disable_warnings --disable_warnings
drop table if exists t1; drop table if exists t1;
--enable_warnings --enable_warnings
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
# #
#-- source include/have_partition.inc #-- source include/have_partition.inc
--disable_query_log
set new=on;
--enable_query_log
--disable_warnings --disable_warnings
drop table if exists t1; drop table if exists t1;
--enable_warnings --enable_warnings
......
...@@ -9866,7 +9866,6 @@ uint ha_ndbcluster::set_up_partition_info(partition_info *part_info, ...@@ -9866,7 +9866,6 @@ uint ha_ndbcluster::set_up_partition_info(partition_info *part_info,
} }
else else
{ {
#ifdef NOT_YET
if (!current_thd->variables.new_mode) if (!current_thd->variables.new_mode)
{ {
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR, push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
...@@ -9877,7 +9876,6 @@ uint ha_ndbcluster::set_up_partition_info(partition_info *part_info, ...@@ -9877,7 +9876,6 @@ uint ha_ndbcluster::set_up_partition_info(partition_info *part_info,
" use --new option to enable"); " use --new option to enable");
return HA_ERR_UNSUPPORTED; return HA_ERR_UNSUPPORTED;
} }
#endif
/* /*
Create a shadow field for those tables that have user defined Create a shadow field for those tables that have user defined
partitioning. This field stores the value of the partition partitioning. This field stores the value of the partition
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment