2007-06-19 09:56:19 +02:00
|
|
|
show status like "binlog_cache_use";
|
|
|
|
Variable_name Value
|
|
|
|
Binlog_cache_use 0
|
|
|
|
show status like "binlog_cache_disk_use";
|
|
|
|
Variable_name Value
|
|
|
|
Binlog_cache_disk_use 0
|
|
|
|
create table t1 (a int) engine=innodb;
|
|
|
|
show status like "binlog_cache_use";
|
|
|
|
Variable_name Value
|
|
|
|
Binlog_cache_use 1
|
|
|
|
show status like "binlog_cache_disk_use";
|
|
|
|
Variable_name Value
|
|
|
|
Binlog_cache_disk_use 1
|
|
|
|
begin;
|
|
|
|
delete from t1;
|
|
|
|
commit;
|
|
|
|
show status like "binlog_cache_use";
|
|
|
|
Variable_name Value
|
|
|
|
Binlog_cache_use 2
|
|
|
|
show status like "binlog_cache_disk_use";
|
|
|
|
Variable_name Value
|
|
|
|
Binlog_cache_disk_use 1
|
|
|
|
drop table t1;
|
2008-02-19 16:27:18 +01:00
|
|
|
CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY) ENGINE=MyISAM;
|
|
|
|
CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB;
|
|
|
|
CREATE FUNCTION bug23333()
|
|
|
|
RETURNS int(11)
|
|
|
|
DETERMINISTIC
|
|
|
|
BEGIN
|
|
|
|
INSERT INTO t1 VALUES (NULL);
|
|
|
|
SELECT COUNT(*) FROM t1 INTO @a;
|
|
|
|
RETURN @a;
|
|
|
|
END|
|
|
|
|
INSERT INTO t2 VALUES (2),(10+bug23333());
|
|
|
|
SHOW MASTER STATUS;
|
|
|
|
File Position Binlog_Do_DB Binlog_Ignore_DB
|
2008-05-16 01:13:24 +02:00
|
|
|
# 184141
|
2008-02-19 16:27:18 +01:00
|
|
|
DROP FUNCTION bug23333;
|
|
|
|
DROP TABLE t1, t2;
|