mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
9ebda8764d
- 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
55 lines
1.7 KiB
Text
55 lines
1.7 KiB
Text
DROP TABLE IF EXISTS t1;
|
|
# Checking variables
|
|
SHOW VARIABLES LIKE 'innodb_fake_changes';
|
|
Variable_name Value
|
|
innodb_fake_changes OFF
|
|
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes';
|
|
VARIABLE_VALUE
|
|
OFF
|
|
SET innodb_fake_changes=1;
|
|
SHOW VARIABLES LIKE 'innodb_fake_changes';
|
|
Variable_name Value
|
|
innodb_fake_changes ON
|
|
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes';
|
|
VARIABLE_VALUE
|
|
ON
|
|
SET innodb_fake_changes=default;
|
|
SHOW VARIABLES LIKE 'innodb_fake_changes';
|
|
Variable_name Value
|
|
innodb_fake_changes OFF
|
|
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_fake_changes';
|
|
VARIABLE_VALUE
|
|
OFF
|
|
# Explicit COMMIT should fail when innodb_fake_changes is enabled
|
|
# DML should be fine
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
SET autocommit=0;
|
|
SET innodb_fake_changes=1;
|
|
BEGIN;
|
|
INSERT INTO t1 VALUES (2);
|
|
UPDATE t1 SET a=0;
|
|
DELETE FROM t1 LIMIT 1;
|
|
SELECT * FROM t1;
|
|
a
|
|
1
|
|
COMMIT;
|
|
ERROR HY000: Got error 131 "Command not supported by database" during COMMIT
|
|
SET innodb_fake_changes=default;
|
|
DROP TABLE t1;
|
|
# DDL must result in error
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
|
SET autocommit=0;
|
|
SET innodb_fake_changes=1;
|
|
BEGIN;
|
|
CREATE TABLE t2 (a INT) ENGINE=InnoDB;
|
|
ERROR HY000: Can't create table 'test.t2' (errno: 131 "Command not supported by database")
|
|
DROP TABLE t1;
|
|
ERROR 42S02: Unknown table 't1'
|
|
TRUNCATE TABLE t1;
|
|
ERROR HY000: Got error 131 "Command not supported by database" during COMMIT
|
|
ALTER TABLE t1 ENGINE=MyISAM;
|
|
ERROR HY000: Got error 131 "Command not supported by database" during COMMIT
|
|
ROLLBACK;
|
|
SET innodb_fake_changes=default;
|
|
DROP TABLE t1;
|