mirror of
https://github.com/MariaDB/server.git
synced 2025-05-08 15:01:49 +03:00
- Changed output to be error "error-text" instead of error - error-text extra/perror.c: Move my_handler_errors.h into include include/my_handler_errors.h: Move my_handler_errors.h into include mysql-test/r/errors.result: Updated result mysql-test/r/innodb_mysql_sync.result: Updated result mysql-test/r/myisam-system.result: Updated result mysql-test/r/myisampack.result: Updated result mysql-test/r/partition_innodb_plugin.result: Updated result mysql-test/r/ps_1general.result: Updated result mysql-test/r/trigger.result: Updated result mysql-test/r/type_bit.result: Updated result mysql-test/r/type_bit_innodb.result: Updated result mysql-test/r/type_blob.result: Updated result mysql-test/suite/archive/archive.result: Updated result mysql-test/suite/binlog/r/binlog_index.result: Updated result mysql-test/suite/binlog/r/binlog_ioerr.result: Updated result mysql-test/suite/csv/csv.result: Updated result mysql-test/suite/engines/iuds/r/type_bit_iuds.result: Updated result mysql-test/suite/federated/federated_bug_35333.result: Updated result mysql-test/suite/innodb/r/innodb-create-options.result: Updated result mysql-test/suite/innodb/r/innodb-index.result: Updated result mysql-test/suite/innodb/r/innodb-zip.result: Updated result mysql-test/suite/innodb/r/innodb.result: Updated result mysql-test/suite/innodb/r/innodb_bug13635833.result: Updated result mysql-test/suite/innodb/r/innodb_bug21704.result: Updated result mysql-test/suite/innodb/r/innodb_bug46000.result: Updated result mysql-test/suite/parts/r/partition_bit_innodb.result: Updated result mysql-test/suite/parts/r/partition_bit_myisam.result: Updated result mysql-test/suite/percona/percona_innodb_fake_changes.result: Updated result mysql-test/suite/perfschema/r/misc.result: Updated result mysql-test/suite/perfschema/r/privilege.result: Updated result mysql-test/suite/rpl/r/rpl_EE_err.result: Updated result mysql-test/suite/rpl/r/rpl_binlog_errors.result: Updated result mysql-test/suite/rpl/r/rpl_drop_db.result: Updated result sql/share/errmsg-utf8.txt: Removed 'column' from error text that was used in different context strings/my_vsnprintf.c: Move my_handler_errors.h into include Minor cleanups Changed output of %M to be error "error-text" instead of error - error-text unittest/mysys/my_vsnprintf-t.c: Updated error text
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
SET DEBUG_SYNC='reset';
|
|
create table t1 (f1 integer, key k1 (f1)) engine=innodb;
|
|
create table t2 (f1 int, f2 int, key(f1), key(f2)) engine=innodb;
|
|
create table t3 (f2 int, key(f2)) engine=innodb;
|
|
insert into t1 values (10);
|
|
insert into t2 values (10, 20);
|
|
insert into t3 values (20);
|
|
alter table t2 add constraint c1 foreign key (f1)
|
|
references t1(f1) on update cascade;
|
|
show create table t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`f1` int(11) DEFAULT NULL,
|
|
KEY `k1` (`f1`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
show create table t2;
|
|
Table Create Table
|
|
t2 CREATE TABLE `t2` (
|
|
`f1` int(11) DEFAULT NULL,
|
|
`f2` int(11) DEFAULT NULL,
|
|
KEY `f1` (`f1`),
|
|
KEY `f2` (`f2`),
|
|
CONSTRAINT `c1` FOREIGN KEY (`f1`) REFERENCES `t1` (`f1`) ON UPDATE CASCADE
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
show create table t3;
|
|
Table Create Table
|
|
t3 CREATE TABLE `t3` (
|
|
`f2` int(11) DEFAULT NULL,
|
|
KEY `f2` (`f2`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
SET DEBUG_SYNC='innodb_rename_table_ready SIGNAL update_can_proceed
|
|
WAIT_FOR dict_unfreeze';
|
|
alter table t2 add constraint z1 foreign key (f2)
|
|
references t3(f2) on update cascade;
|
|
SET DEBUG_SYNC='innodb_row_update_for_mysql_begin
|
|
WAIT_FOR update_can_proceed';
|
|
SET DEBUG_SYNC='innodb_dml_cascade_dict_unfreeze SIGNAL dict_unfreeze
|
|
WAIT_FOR foreign_free_cache';
|
|
update ignore t1 set f1 = 20;
|
|
ERROR HY000: Error on rename of './test/t2' to '#sql2-temporary' (errno: 182 "Table is being used in foreign key check")
|
|
SET DEBUG_SYNC='now SIGNAL foreign_free_cache';
|
|
drop table t2;
|
|
drop table t1;
|
|
drop table t3;
|
|
SET DEBUG_SYNC='reset';
|