Skip to content

Commit

Permalink
Merge '7.4' into mysql-trunk-cluster
Browse files Browse the repository at this point in the history
 - fix conflicts in copyright headers
 - replace  Sql_condition::WARN_LEVEL_WARN with
   Sql_condition::SL_WARNING
 - replace usage of pthread_ with native_
 - Add SHOW_SCOPE_GLOBAL to new(or refactored) status variables

Conflicts:
	.gitignore
	VERSION
	mysql-test/collections/default.experimental
	mysql-test/suite/ndb/r/ndb_alter_table_online.result
	mysql-test/suite/ndb/r/ndb_alter_table_online2.result
	mysql-test/suite/ndb/r/ndb_types.result
	mysql-test/suite/ndb/t/ndb_types.test
	mysql-test/suite/ndb_binlog/r/ndb_binlog_ddl_multi.result
	mysql-test/suite/ndb_binlog/r/ndb_binlog_discover_multi.result
	mysql-test/suite/ndb_binlog/r/ndb_binlog_log_bin.result
	mysql-test/suite/ndb_binlog/t/ndb_binlog_discover.test
	mysql-test/suite/ndb_rpl/r/ndb_rpl_conflict_epoch.result
	mysql-test/suite/ndb_rpl/r/ndb_rpl_conflict_epoch_ext.result
	mysql-test/suite/ndb_rpl/r/ndb_rpl_conflict_epoch_trans.result
	mysql-test/suite/ndb_rpl/r/ndb_rpl_conflict_epoch_trans_ext.result
	mysql-test/suite/ndb_rpl/t/ndb_conflict_info.inc
	mysql-test/suite/ndb_rpl/t/ndb_rpl_conflict_epoch.inc
	mysql-test/suite/ndb_rpl/t/ndb_rpl_conflict_epoch_trans.inc
	mysql-test/suite/ndb_rpl/t/ndb_trans_conflict_info.inc
	mysql-test/suite/ndb_rpl/t/ndb_trans_conflict_info_stable.inc
	mysql-test/suite/rpl/r/rpl_4threads_deadlock.result
	mysql-test/suite/rpl/t/rpl_4threads_deadlock.test
	packaging/rpm-oel/mysql.spec.in
	scripts/mysql_system_tables.sql
	sql/ha_ndb_ddl_fk.cc
	sql/ha_ndbcluster.cc
	sql/ha_ndbcluster_binlog.cc
	sql/ha_ndbcluster_binlog.h
	sql/sql_show.h
	storage/ndb/CMakeLists.txt
	storage/ndb/clusterj/clusterj-core/src/main/java/com/mysql/clusterj/core/SessionFactoryImpl.java
	storage/ndb/include/kernel/GlobalSignalNumbers.h
	storage/ndb/include/kernel/ndb_limits.h
	storage/ndb/include/mgmapi/mgmapi_config_parameters.h
	storage/ndb/include/ndbapi/NdbDictionary.hpp
	storage/ndb/include/transporter/TransporterCallback.hpp
	storage/ndb/include/transporter/TransporterRegistry.hpp
	storage/ndb/src/common/debugger/signaldata/CMakeLists.txt
	storage/ndb/src/common/debugger/signaldata/PackedSignal.cpp
	storage/ndb/src/common/debugger/signaldata/SignalDataPrint.cpp
	storage/ndb/src/common/debugger/signaldata/SignalNames.cpp
	storage/ndb/src/common/portlib/NdbCondition.c
	storage/ndb/src/common/transporter/TransporterRegistry.cpp
	storage/ndb/src/kernel/blocks/ERROR_codes.txt
	storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp
	storage/ndb/src/kernel/blocks/dbspj/Dbspj.hpp
	storage/ndb/src/kernel/blocks/lgman.cpp
	storage/ndb/src/kernel/blocks/tsman.cpp
	storage/ndb/src/kernel/error/ErrorReporter.cpp
	storage/ndb/src/kernel/vm/DLHashTable.hpp
	storage/ndb/src/kernel/vm/mt.cpp
	storage/ndb/src/mgmsrv/MgmtSrvr.hpp
	storage/ndb/src/mgmsrv/Services.cpp
	storage/ndb/src/ndbapi/ClusterMgr.cpp
	storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
	storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp
	storage/ndb/src/ndbapi/NdbScanOperation.cpp
	storage/ndb/src/ndbapi/TransporterFacade.hpp
	storage/ndb/src/ndbapi/WakeupHandler.cpp
	storage/ndb/src/ndbapi/trp_buffer.hpp
	storage/ndb/src/ndbapi/trp_client.hpp
	storage/ndb/test/ndbapi/testBasic.cpp
	storage/ndb/test/ndbapi/testIndex.cpp
	storage/ndb/test/ndbapi/testLimits.cpp
	storage/ndb/test/ndbapi/testNdbApi.cpp
	storage/ndb/test/src/HugoTransactions.cpp
	storage/ndb/tools/ndb_dist_priv.sql
	support-files/mysql.spec.sh
  • Loading branch information
blaudden committed Mar 3, 2015
2 parents 952ccc3 + 9766697 commit 333b153
Show file tree
Hide file tree
Showing 587 changed files with 51,981 additions and 14,663 deletions.
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3045,8 +3045,7 @@ storage/ndb/**/target
storage/ndb/**/*.class
storage/ndb/src/ndbjtie/**/*.sh
storage/ndb/src/ndbjtie/**/*.log
storage/ndb/src/ndbjtie/**/*.cmd
storage/ndb/src/ndbjtie/**/*_test
storage/ndb/src/ndbjtie/jtie/test/myapi/myapi_test
storage/ndb/clusterj/**/*MANIFEST.MF
storage/ndb/clusterj/**/*manifest.mf
storage/ndb/test/crund/*.cnf
Expand Down Expand Up @@ -3129,10 +3128,6 @@ Docs/INFO_SRC
Testing
FilesCopied
source_downloads
storage/ndb/include/ndb_config.h
storage/ndb/memcache/memcached_path.pl
storage/ndb/memcache/sandbo*
storage/ndb/memcache/include/ndbmemcache_config.h
client/mysql_plugin
support-files/plugins.files
storage/perfschema/pfs_lex_token.h
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MYSQL_VERSION_MAJOR=5
MYSQL_VERSION_MINOR=7
MYSQL_VERSION_PATCH=6
MYSQL_VERSION_EXTRA=-ndb-7.4.0
MYSQL_VERSION_EXTRA=-ndb-7.4.5
5 changes: 5 additions & 0 deletions mysql-test/collections/default.experimental
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ rpl.rpl_gtid_stress_failover # Bug#16409537 2014-09-18 Shiv Fails of

interactive_utilities.mysql_secure_installation #Bug19077239 2014-09-18 Sneha Fails often on daily trunk branches
interactive_utilities.mysql_secure_installation_ssl #Bug19077239 2014-09-18 Sneha Fails often on daily trunk branches

# Bug #20402364 NDB : NDB_ADDNODE_WITHBINLOG FAILS DUE TO EVENT API STALL
# FC : SUMA bug related to CREATE NODEGROUP/DROP NODEGROUP/CREATE NODEGROUP
ndb.ndb_addnode_withbinlog

1 change: 1 addition & 0 deletions mysql-test/include/default_ndbd.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ BackupLogBufferSize= 2M
BackupMemory= 4M
TwoPassInitialNodeRestartCopy=1
TransactionDeadlockDetectionTimeout=3000
Checksum=1

# O_DIRECT has issues on 2.4 which have not been handled, Bug #29612
#ODirect= 1
Expand Down
32 changes: 32 additions & 0 deletions mysql-test/suite/ndb/include/ndb_find_index_stat_tool.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--perl
use strict;
use lib "lib/";
use My::Find;
use File::Basename;

my $mysql_test_dir = $ENV{MYSQL_TEST_DIR} or die "Need MYSQL_TEST_DIR";
my $basedir = dirname($mysql_test_dir);

# In the RPM case, binaries and libraries are installed in the
# default system locations, instead of having our own private base
# directory. And we install "usr/share/mysql-test". Moving up two
# more directory relative to "mysql-test" gives us a usable base
# directory for RPM installs.
if (! -d "$basedir/sql" and ! -d "$basedir/bin" )
{
$basedir= dirname($basedir);
}
my $bindir = $ENV{MTR_BINDIR} || $basedir; # Out of source set MTR_BINDIR

my $NDB_INDEX_STAT = my_find_bin($bindir,
["storage/ndb/tools", "bin"],
"ndb_index_stat");

my $vardir = $ENV{MYSQLTEST_VARDIR} or die "Need MYSQLTEST_VARDIR" ;
open ( OUTPUT, ">$vardir/tmp/ndb_find_index_stat_tool_result.inc") ;
print OUTPUT "let \$NDB_INDEX_STAT=$NDB_INDEX_STAT;\n";
close (OUTPUT);
EOF

--source $MYSQLTEST_VARDIR/tmp/ndb_find_index_stat_tool_result.inc
--remove_file $MYSQLTEST_VARDIR/tmp/ndb_find_index_stat_tool_result.inc
32 changes: 32 additions & 0 deletions mysql-test/suite/ndb/include/ndb_find_print_file_tool.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--perl
use strict;
use lib "lib/";
use My::Find;
use File::Basename;

my $mysql_test_dir = $ENV{MYSQL_TEST_DIR} or die "Need MYSQL_TEST_DIR";
my $basedir = dirname($mysql_test_dir);

# In the RPM case, binaries and libraries are installed in the
# default system locations, instead of having our own private base
# directory. And we install "usr/share/mysql-test". Moving up two
# more directory relative to "mysql-test" gives us a usable base
# directory for RPM installs.
if (! -d "$basedir/sql" and ! -d "$basedir/bin" )
{
$basedir= dirname($basedir);
}
my $bindir = $ENV{MTR_BINDIR} || $basedir; # Out of source set MTR_BINDIR

my $NDB_PRINT_FILE = my_find_bin($bindir,
["storage/ndb/src/kernel/blocks", "bin"],
"ndb_print_file");

my $vardir = $ENV{MYSQLTEST_VARDIR} or die "Need MYSQLTEST_VARDIR" ;
open ( OUTPUT, ">$vardir/tmp/ndb_find_print_file_tool_result.inc") ;
print OUTPUT "let \$NDB_PRINT_FILE=$NDB_PRINT_FILE;\n";
close (OUTPUT);
EOF

--source $MYSQLTEST_VARDIR/tmp/ndb_find_print_file_tool_result.inc
--remove_file $MYSQLTEST_VARDIR/tmp/ndb_find_print_file_tool_result.inc
33 changes: 33 additions & 0 deletions mysql-test/suite/ndb/r/ndb_alter_table.result
Original file line number Diff line number Diff line change
Expand Up @@ -546,4 +546,37 @@ DROP TABLESPACE ts1
ENGINE ndb;
DROP LOGFILE GROUP lg1
ENGINE = ndb;
#test alter table add column with partion by and comment clause
CREATE TABLE t1(id INT, PRIMARY KEY(id)) ENGINE=NDB;
ALTER TABLE t1 ADD value INT NULL, COMMENT='comment1' PARTITION BY KEY(id);
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`id` int(11) NOT NULL DEFAULT '0',
`value` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=ndbcluster DEFAULT CHARSET=latin1 COMMENT='comment1'
/*!50100 PARTITION BY KEY (id) */
DROP TABLE t1;
#test alter table with and without ENGINE clause
CREATE TABLE t1(id INT, PRIMARY KEY(id)) ENGINE=NDB;
ALTER TABLE t1 ENGINE=NDB PARTITION BY KEY(id);
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=ndbcluster DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (id) */
DROP TABLE t1;
CREATE TABLE t1(id INT, PRIMARY KEY(id)) ENGINE=NDB;
ALTER TABLE t1 PARTITION BY KEY(id);
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=ndbcluster DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (id) */
DROP TABLE t1;
End of 5.1 tests
77 changes: 77 additions & 0 deletions mysql-test/suite/ndb/r/ndb_autoinc.result
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,80 @@ t3 CREATE TABLE `t3` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1, t3;
End of 5.1 tests
set @@auto_increment_increment=4;
set @@auto_increment_offset=1;
set @@ndb_autoincrement_prefetch_sz=2;
create table t1 (a int unsigned not null primary key auto_increment)
engine ndb;
insert into t1 values ();
insert into t1 values (2);
insert into t1 values ();
insert into t1 values ();
select * from t1 order by a;
a
1
2
5
9
drop table t1;
set @@auto_increment_increment=2;
set @@auto_increment_offset=1;
First look at default SE behaviour on manual insert unaligned with
offset + step
create table t1 (a int unsigned not null primary key auto_increment);
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 9
insert into t1 values();
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 1
insert into t1 values(18);
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 1
insert into t1 values();
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 19
insert into t1 values();
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 21
insert into t1 values();
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 23
insert into t1 values(22);
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 23
insert into t1 values();
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 25
insert into t1 values(28);
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 25
insert into t1 values();
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 29
insert into t1 values();
show variables like 'LAST_INSERT_ID';
Variable_name Value
last_insert_id 31
select * from t1 order by a;
a
1
18
19
21
22
23
25
28
29
31
drop table t1;
17 changes: 14 additions & 3 deletions mysql-test/suite/ndb/r/ndb_basic.result
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,19 @@ Ndb_api_wait_scan_result_count_slave #
Ndb_cluster_node_id #
Ndb_config_from_host #
Ndb_config_from_port #
Ndb_conflict_epoch_delete_delete_count #
Ndb_conflict_fn_epoch #
Ndb_conflict_fn_epoch2 #
Ndb_conflict_fn_epoch2_trans #
Ndb_conflict_fn_epoch_trans #
Ndb_conflict_fn_max #
Ndb_conflict_fn_max_del_win #
Ndb_conflict_fn_old #
Ndb_conflict_last_conflict_epoch #
Ndb_conflict_last_stable_epoch #
Ndb_conflict_reflected_op_discard_count #
Ndb_conflict_reflected_op_prepare_count #
Ndb_conflict_refresh_op_count #
Ndb_conflict_trans_conflict_commit_count #
Ndb_conflict_trans_detect_iter_count #
Ndb_conflict_trans_reject_count #
Expand All @@ -100,7 +108,6 @@ Ndb_pushed_queries_executed #
Ndb_pushed_reads #
Ndb_scan_count #
Ndb_schema_locks_count #
Ndb_slave_last_conflict_epoch #
Ndb_slave_max_replicated_epoch #
Ndb_sorted_scan_count #
SHOW GLOBAL VARIABLES WHERE Variable_name LIKE 'ndb\_%' and
Expand All @@ -115,6 +122,7 @@ ndb_cluster_connection_pool #
ndb_connectstring #
ndb_deferred_constraints #
ndb_distribution #
ndb_eventbuffer_free_percent #
ndb_eventbuffer_max_alloc #
ndb_extra_logging #
ndb_force_send #
Expand All @@ -125,6 +133,8 @@ ndb_log_apply_status #
ndb_log_bin #
ndb_log_binlog_index #
ndb_log_empty_epochs #
ndb_log_empty_update #
ndb_log_exclusive_reads #
ndb_log_orig #
ndb_log_transaction_id #
ndb_log_update_as_write #
Expand Down Expand Up @@ -1021,9 +1031,10 @@ drop table t1;
create table
abcdefghijklmnopqrstuvwxyz1234567890bcdefghijklmnopqrstuvwxyz123(id int
primary key) engine=ndb;
ERROR HY000: Got error 1059 'Unknown error code' from NDBCLUSTER
ERROR 42000: Identifier name 'abcdefghijklmnopqrstuvwxyz1234567890bcdefghijklmnopqrstuvwxyz123' is too long
show warnings;
Level Code Message
Warning 1059 Ndb has an internal limit of 63 bytes on the size of schema identifiers
Error 1296 Got error 1059 'Unknown error code' from NDBCLUSTER
Error 1059 Identifier name 'abcdefghijklmnopqrstuvwxyz1234567890bcdefghijklmnopqrstuvwxyz123' is too long
Error 1031 Table storage engine for 'abcdefghijklmnopqrstuvwxyz1234567890bcdefghijklmnopqrstuvwxyz123' doesn't have this option
End of 5.1 tests
38 changes: 38 additions & 0 deletions mysql-test/suite/ndb/r/ndb_bug19390895.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
create table t1 (
a int,
b int not null,
c1 char(255),
c2 char(255),
key k1(b, c1, c2)
)
engine = ndb;
insert into t1(a,b,c1,c2) values
(0, 0, 0, 0),
(1, 1, 1, 1),
(2, 2, 2, 1),
(3, 3, 3, 3),
(4, 4, 4, 4),
(5, 5, 5, 5),
(6, 6, 6, 6),
(7, 7, 7, 7),
(8, 8, 8, 8),
(9, 9, 9, 9);
insert into t1 select a + 10, b, c1, c2 from t1;
insert into t1 select a + 20, b, c1, c2 from t1;
insert into t1 select a + 40, b, c1, c2 from t1;
insert into t1 select a + 80, b, c1, c2 from t1;
insert into t1 select a + 160, b, c1, c2 from t1;
insert into t1 select a + 320, b, c1, c2 from t1;
insert into t1 select a + 640, b, c1, c2 from t1;
insert into t1 select a + 1280, b, c1, c2 from t1;
explain
select * from t1 as x, t1 as y
where y.b = x.a and y.c1 = x.c1 and y.c2 = x.c1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE x ALL NULL NULL NULL NULL 2560 Parent of 2 pushed join@1; Using where with pushed condition
1 SIMPLE y ref k1 k1 516 test.x.a,test.x.c1,test.x.c1 10 Child of 'x' in pushed join@1
select count(*) from t1 as x, t1 as y
where y.b = x.a and y.c1 = x.c1 and y.c2 = x.c1;
count(*)
2304
drop table t1;
13 changes: 13 additions & 0 deletions mysql-test/suite/ndb/r/ndb_condition_pushdown.result
Original file line number Diff line number Diff line change
Expand Up @@ -2557,3 +2557,16 @@ insert into t1 values ('00:00:00'),('01:01:01');
select 1 from t1 where a >= NULL;
1
drop table t1;
#
# BUG#14798022 "CHAR (0)" DATATYPE CAUSING ERROR 1296
# Verify there is no push down support for char(0)
#
create table t1(a int, b char(0)) engine=ndbcluster;
insert into t1 values(1,''), (2, NULL);
explain select * from t1 where b = '';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL # Using where
select * from t1 where b = '';
a b
1
drop table t1;
21 changes: 21 additions & 0 deletions mysql-test/suite/ndb/r/ndb_fired_trigger_shortage.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
select sum(high) < sum(total) from ndbinfo.ndb$pools
where pool_name='Fired Trigger';
sum(high) < sum(total)
1
create table num (n int);
insert into num value (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
CREATE TABLE t1 (
a int NOT NULL,
b int NOT NULL,
c int NOT NULL,
d int NOT NULL,
PRIMARY KEY (`b`,`a`),
unique key(d)
) ENGINE=ndbcluster;
insert into t1 select x1.n+x2.n*10+x3.n*100, 1, 1, 1+x1.n+x2.n*10+x3.n*100 from num as x1, num as x2, num as x3;
ERROR HY000: Got temporary error 221 'Too many concurrently fired triggers (increase MaxNoOfFiredTriggers)' from NDBCLUSTER
select sum(used) from ndbinfo.ndb$pools where pool_name='Fired Trigger';
sum(used)
0
drop table num;
drop table t1;
12 changes: 6 additions & 6 deletions mysql-test/suite/ndb/r/ndb_fk_alter.result
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ child CREATE TABLE `child` (
PRIMARY KEY (`a`),
UNIQUE KEY `b` (`b`) USING HASH,
KEY `c` (`c`),
CONSTRAINT `fk1` FOREIGN KEY(`a`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk2` FOREIGN KEY(`b`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk3` FOREIGN KEY(`c`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION
CONSTRAINT `fk1` FOREIGN KEY (`a`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk2` FOREIGN KEY (`b`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk3` FOREIGN KEY (`c`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=ndbcluster DEFAULT CHARSET=latin1
alter table child algorithm=inplace, drop foreign key fk1;
show create table child;
Expand All @@ -36,8 +36,8 @@ child CREATE TABLE `child` (
PRIMARY KEY (`a`),
UNIQUE KEY `b` (`b`) USING HASH,
KEY `c` (`c`),
CONSTRAINT `fk2` FOREIGN KEY(`b`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk3` FOREIGN KEY(`c`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION
CONSTRAINT `fk2` FOREIGN KEY (`b`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk3` FOREIGN KEY (`c`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=ndbcluster DEFAULT CHARSET=latin1
alter table child algorithm=inplace, drop foreign key fk2;
show create table child;
Expand All @@ -49,7 +49,7 @@ child CREATE TABLE `child` (
PRIMARY KEY (`a`),
UNIQUE KEY `b` (`b`) USING HASH,
KEY `c` (`c`),
CONSTRAINT `fk3` FOREIGN KEY(`c`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION
CONSTRAINT `fk3` FOREIGN KEY (`c`) REFERENCES `parent` (`a`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=ndbcluster DEFAULT CHARSET=latin1
alter table child algorithm=inplace, drop foreign key fk3;
show create table child;
Expand Down
Loading

0 comments on commit 333b153

Please sign in to comment.