2008-01-08 21:45:15 +01:00
reset master;
2003-09-24 21:25:58 +02:00
set timestamp=1000000000;
2007-01-22 14:52:15 +01:00
drop table if exists t1,t2,t3,t4,t5,t03,t04;
2003-09-24 21:25:58 +02:00
create table t1 (word varchar(20));
create table t2 (id int auto_increment not null primary key);
insert into t1 values ("abirvalg");
insert into t2 values ();
2007-12-12 18:19:24 +01:00
load data infile '../../std_data/words.dat' into table t1;
load data infile '../../std_data/words.dat' into table t1;
load data infile '../../std_data/words.dat' into table t1;
load data infile '../../std_data/words.dat' into table t1;
load data infile '../../std_data/words.dat' into table t1;
2003-09-24 21:25:58 +02:00
insert into t1 values ("Alas");
flush logs;
--- Local --
2004-04-28 12:08:54 +02:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
ROLLBACK/*!*/;
use test/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
2008-04-02 11:49:22 +02:00
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2006-11-28 13:26:15 +01:00
SET @@session.sql_mode=0/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2006-11-28 13:26:15 +01:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
drop table if exists t1,t2,t3,t4,t5,t03,t04
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
create table t1 (word varchar(20))
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
create table t2 (id int auto_increment not null primary key)
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
insert into t1 values ("abirvalg")
/*!*/;
2006-11-28 13:26:15 +01:00
SET INSERT_ID=1/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
insert into t2 values ()
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (word)
2007-12-17 14:13:25 +01:00
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (word)
2007-12-17 14:13:25 +01:00
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (word)
2007-12-17 14:13:25 +01:00
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (word)
2007-12-17 14:13:25 +01:00
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2003-09-24 21:25:58 +02:00
--- Broken LOAD DATA --
2004-04-28 12:08:54 +02:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
use test/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
2008-04-02 11:49:22 +02:00
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2006-11-28 13:26:15 +01:00
SET @@session.sql_mode=0/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2006-11-28 13:26:15 +01:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
insert into t1 values ("Alas")
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2003-09-24 21:25:58 +02:00
--- --database --
2004-04-28 12:08:54 +02:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
ROLLBACK/*!*/;
SET INSERT_ID=1/*!*/;
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2003-09-24 21:25:58 +02:00
--- --position --
2004-04-28 12:08:54 +02:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
use test/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
2008-04-02 11:49:22 +02:00
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2006-11-28 13:26:15 +01:00
SET @@session.sql_mode=0/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2006-11-28 13:26:15 +01:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
insert into t1 values ("Alas")
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2003-09-24 21:25:58 +02:00
--- Remote --
2004-04-28 12:08:54 +02:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
ROLLBACK/*!*/;
use test/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
2008-04-02 11:49:22 +02:00
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2006-11-28 13:26:15 +01:00
SET @@session.sql_mode=0/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2006-11-28 13:26:15 +01:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
drop table if exists t1,t2,t3,t4,t5,t03,t04
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
create table t1 (word varchar(20))
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
create table t2 (id int auto_increment not null primary key)
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
insert into t1 values ("abirvalg")
/*!*/;
2006-11-28 13:26:15 +01:00
SET INSERT_ID=1/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
insert into t2 values ()
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (word)
2007-12-17 14:13:25 +01:00
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (word)
2007-12-17 14:13:25 +01:00
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (word)
2007-12-17 14:13:25 +01:00
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (word)
2007-12-17 14:13:25 +01:00
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2003-09-24 21:25:58 +02:00
--- Broken LOAD DATA --
2004-04-28 12:08:54 +02:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
use test/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
2008-04-02 11:49:22 +02:00
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2006-11-28 13:26:15 +01:00
SET @@session.sql_mode=0/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2006-11-28 13:26:15 +01:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
insert into t1 values ("Alas")
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2003-09-24 21:25:58 +02:00
--- --database --
2004-04-28 12:08:54 +02:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
ROLLBACK/*!*/;
SET INSERT_ID=1/*!*/;
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2003-09-24 21:25:58 +02:00
--- --position --
2004-04-28 12:08:54 +02:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
use test/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
2008-04-02 11:49:22 +02:00
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2006-11-28 13:26:15 +01:00
SET @@session.sql_mode=0/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2006-11-28 13:26:15 +01:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
insert into t1 values ("Alas")
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2005-02-04 14:29:54 +01:00
--- reading stdin --
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
ROLLBACK/*!*/;
use test/*!*/;
SET TIMESTAMP=1108844556/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
BEGIN
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1108844555/*!*/;
2007-12-17 14:13:25 +01:00
insert t1 values (1)
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2005-02-04 14:29:54 +01:00
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
2005-02-23 19:59:25 +01:00
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
2006-11-28 13:26:15 +01:00
DELIMITER /*!*/;
use test/*!*/;
SET TIMESTAMP=1108844556/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
BEGIN
/*!*/;
2006-11-28 13:26:15 +01:00
SET TIMESTAMP=1108844555/*!*/;
2007-12-17 14:13:25 +01:00
insert t1 values (1)
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
2005-09-21 14:27:41 +02:00
# End of log file
2005-09-30 10:58:24 +02:00
ROLLBACK /* added by mysqlbinlog */;
2005-02-23 19:59:25 +01:00
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2007-01-22 14:52:15 +01:00
drop table t1,t2;
2006-02-09 15:23:09 +01:00
flush logs;
2006-12-14 11:05:25 +01:00
flush logs;
2006-05-31 12:51:21 +02:00
select * from t5 /* must be (1),(1) */;
a
1
1
2007-01-22 14:52:15 +01:00
drop table t5;
2006-12-07 06:31:53 +01:00
flush logs;
create table t5 (c1 int, c2 varchar(128) character set latin1 not null);
insert into t5 values (1, date_format('2001-01-01','%W'));
set lc_time_names=de_DE;
insert into t5 values (2, date_format('2001-01-01','%W'));
set lc_time_names=en_US;
insert into t5 values (3, date_format('2001-01-01','%W'));
select * from t5 order by c1;
c1 c2
1 Monday
2 Montag
3 Monday
flush logs;
drop table t5;
select * from t5 order by c1;
c1 c2
1 Monday
2 Montag
3 Monday
2007-01-22 14:52:15 +01:00
drop table t5;
2006-11-28 13:26:15 +01:00
drop procedure if exists p1;
flush logs;
create procedure p1()
begin
select 1;
end;
//
flush logs;
call p1();
1
1
drop procedure p1;
call p1();
ERROR 42000: PROCEDURE test.p1 does not exist
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
use test/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
2008-04-02 11:49:22 +02:00
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2006-11-28 13:26:15 +01:00
SET @@session.sql_mode=0/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2006-11-28 13:26:15 +01:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2008-05-16 01:13:24 +02:00
CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
2006-11-28 13:26:15 +01:00
begin
select 1;
2007-12-17 14:13:25 +01:00
end
/*!*/;
2006-11-28 13:26:15 +01:00
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
call p1();
1
1
drop procedure p1;
2006-12-14 11:05:25 +01:00
flush logs;
2007-02-28 14:06:57 +01:00
create table t1 (a varchar(64) character set utf8);
2007-12-12 18:19:24 +01:00
load data infile '../../std_data/loaddata6.dat' into table t1;
2007-02-28 14:06:57 +01:00
set character_set_database=koi8r;
2007-12-12 18:19:24 +01:00
load data infile '../../std_data/loaddata6.dat' into table t1;
2007-02-28 14:06:57 +01:00
set character_set_database=latin1;
2007-12-12 18:19:24 +01:00
load data infile '../../std_data/loaddata6.dat' into table t1;
load data infile '../../std_data/loaddata6.dat' into table t1;
2007-02-28 14:06:57 +01:00
set character_set_database=koi8r;
2007-12-12 18:19:24 +01:00
load data infile '../../std_data/loaddata6.dat' into table t1;
2007-02-28 14:06:57 +01:00
set character_set_database=latin1;
2007-12-12 18:19:24 +01:00
load data infile '../../std_data/loaddata6.dat' into table t1;
load data infile '../../std_data/loaddata6.dat' into table t1 character set koi8r;
2007-02-28 14:06:57 +01:00
select hex(a) from t1;
hex(a)
C3BF
D0AA
C3BF
C3BF
D0AA
C3BF
D0AA
drop table t1;
flush logs;
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
use test/*!*/;
SET TIMESTAMP=1000000000/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.pseudo_thread_id=999999999/*!*/;
2008-04-02 11:49:22 +02:00
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2007-02-28 14:06:57 +01:00
SET @@session.sql_mode=0/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2007-02-28 14:06:57 +01:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2008-03-07 13:59:36 +01:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2007-12-17 14:13:25 +01:00
create table t1 (a varchar(64) character set utf8)
/*!*/;
2007-02-28 14:06:57 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (a)
2007-12-17 14:13:25 +01:00
/*!*/;
2007-02-28 14:06:57 +01:00
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=7/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (a)
2007-12-17 14:13:25 +01:00
/*!*/;
2007-02-28 14:06:57 +01:00
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (a)
2007-12-17 14:13:25 +01:00
/*!*/;
2007-02-28 14:06:57 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-#-#' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (a)
2007-12-17 14:13:25 +01:00
/*!*/;
2007-02-28 14:06:57 +01:00
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=7/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-a-0' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (a)
2007-12-17 14:13:25 +01:00
/*!*/;
2007-02-28 14:06:57 +01:00
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-b-0' INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (a)
2007-12-17 14:13:25 +01:00
/*!*/;
2007-02-28 14:06:57 +01:00
SET TIMESTAMP=1000000000/*!*/;
2009-09-28 14:41:10 +02:00
LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-c-0' INTO TABLE `t1` CHARACTER SET koi8r FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (a)
2007-12-17 14:13:25 +01:00
/*!*/;
2007-02-28 14:06:57 +01:00
SET TIMESTAMP=1000000000/*!*/;
2007-12-17 14:13:25 +01:00
drop table t1
/*!*/;
2007-02-28 14:06:57 +01:00
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2007-06-20 23:11:28 +02:00
CREATE TABLE t1 (c1 CHAR(10));
2009-03-03 21:34:18 +01:00
FLUSH LOGS;
2007-06-20 23:11:28 +02:00
INSERT INTO t1 VALUES ('0123456789');
2009-03-03 21:34:18 +01:00
FLUSH LOGS;
2007-06-20 23:11:28 +02:00
DROP TABLE t1;
2009-02-19 21:37:40 +01:00
We expect this value to be 1
The bug being tested was that 'Query' lines were not preceded by '#'
If the line is in the table, it had to have been preceded by a '#'
SELECT COUNT(*) AS `BUG#28293_expect_1` FROM patch WHERE a LIKE '%Query%';
BUG#28293_expect_1
1
DROP TABLE patch;
2009-03-03 21:34:18 +01:00
FLUSH LOGS;
CREATE TABLE t1(a INT);
INSERT INTO t1 VALUES(connection_id());
FLUSH LOGS;
DROP TABLE t1;
2007-08-01 12:27:03 +02:00
1
2009-03-03 21:34:18 +01:00
DROP TABLE t1;
2007-11-09 13:43:09 +01:00
shell> mysqlbinlog std_data/corrupt-relay-bin.000624 > var/tmp/bug31793.sql
2009-03-06 15:56:17 +01:00
FLUSH LOGS;
Bug#31611 Security risk with BINLOG statement
2007-11-03 01:33:48 +01:00
SET BINLOG_FORMAT=ROW;
CREATE DATABASE mysqltest1;
CREATE USER untrusted@localhost;
GRANT SELECT ON mysqltest1.* TO untrusted@localhost;
SHOW GRANTS FOR untrusted@localhost;
Grants for untrusted@localhost
GRANT USAGE ON *.* TO 'untrusted'@'localhost'
GRANT SELECT ON `mysqltest1`.* TO 'untrusted'@'localhost'
USE mysqltest1;
CREATE TABLE t1 (a INT, b CHAR(64));
flush logs;
INSERT INTO t1 VALUES (1,USER());
flush logs;
mysqlbinlog var/log/master-bin.000017 > var/tmp/bug31611.sql
mysql mysqltest1 -uuntrusted < var/tmp/bug31611.sql
INSERT INTO t1 VALUES (1,USER());
ERROR 42000: INSERT command denied to user 'untrusted'@'localhost' for table 't1'
SELECT * FROM t1;
a b
1 root@localhost
DROP DATABASE mysqltest1;
2007-11-12 11:29:55 +01:00
DROP USER untrusted@localhost;
2009-03-06 15:56:17 +01:00
Bug#32580 mysqlbinlog cannot read binlog event with user variables
2007-11-23 14:41:41 +01:00
USE test;
SET BINLOG_FORMAT = STATEMENT;
FLUSH LOGS;
CREATE TABLE t1 (a_real FLOAT, an_int INT, a_decimal DECIMAL(5,2), a_string CHAR(32));
SET @a_real = rand(20) * 1000;
SET @an_int = 1000;
SET @a_decimal = CAST(rand(19) * 999 AS DECIMAL(5,2));
SET @a_string = 'Just a test';
INSERT INTO t1 VALUES (@a_real, @an_int, @a_decimal, @a_string);
FLUSH LOGS;
SELECT * FROM t1;
a_real 158.883
an_int 1000
a_decimal 907.79
a_string Just a test
DROP TABLE t1;
>> mysqlbinlog var/log/master-bin.000019 > var/tmp/bug32580.sql
>> mysql test < var/tmp/bug32580.sql
SELECT * FROM t1;
a_real 158.883
an_int 1000
a_decimal 907.79
a_string Just a test
DROP TABLE t1;
2009-03-05 14:35:03 +01:00
SET @@global.server_id= 4294967295;
RESET MASTER;
FLUSH LOGS;
SELECT
(@a:=LOAD_FILE("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug37313.binlog"))
IS NOT NULL;
(@a:=LOAD_FILE("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug37313.binlog"))
IS NOT NULL
2009-02-20 12:55:43 +01:00
1
*** Unsigned server_id 4294967295 is found: 1 ***
2009-03-05 14:35:03 +01:00
SET @@global.server_id= 1;
2009-05-07 16:31:02 +02:00
RESET MASTER;
FLUSH LOGS;
2009-09-30 04:01:52 +02:00
RESET MASTER;
FLUSH LOGS;
#
# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified is exist
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
ROLLBACK/*!*/;
use test/*!*/;
SET TIMESTAMP=1253783037/*!*/;
2009-09-30 04:31:25 +02:00
SET @@session.pseudo_thread_id=999999999/*!*/;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2009-09-30 04:01:52 +02:00
SET @@session.sql_mode=0/*!*/;
2009-09-30 04:31:25 +02:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2009-09-30 04:01:52 +02:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2009-09-30 04:31:25 +02:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2009-09-30 04:01:52 +02:00
create table t1(a int) engine= innodb
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
BEGIN
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
insert into t1 (a) values (1)
/*!*/;
COMMIT/*!*/;
SET TIMESTAMP=1253783037/*!*/;
create table t3(a int) engine= innodb
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
BEGIN
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
insert into t3 (a) values (2)
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
ROLLBACK
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
create table t5(a int) engine= NDB
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
BEGIN
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
insert into t5 (a) values (3)
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
COMMIT
/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
#
# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified is not exist
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
ROLLBACK/*!*/;
SET TIMESTAMP=1253783037/*!*/;
2009-09-30 04:31:25 +02:00
SET @@session.pseudo_thread_id=999999999/*!*/;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
2009-09-30 04:01:52 +02:00
SET @@session.sql_mode=0/*!*/;
2009-09-30 04:31:25 +02:00
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
2009-09-30 04:01:52 +02:00
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
2009-09-30 04:31:25 +02:00
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
2009-09-30 04:01:52 +02:00
BEGIN
/*!*/;
COMMIT/*!*/;
SET TIMESTAMP=1253783037/*!*/;
BEGIN
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
ROLLBACK
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
BEGIN
/*!*/;
SET TIMESTAMP=1253783037/*!*/;
COMMIT
/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
2007-02-19 11:57:06 +01:00
End of 5.0 tests
2007-03-07 10:15:45 +01:00
End of 5.1 tests