~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_auto_increment_11932.result

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include/master-slave.inc
 
2
Warnings:
 
3
Note    ####    Sending passwords in plain text without SSL/TLS is extremely insecure.
 
4
Note    ####    Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 
5
[connection master]
 
6
call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.');
 
7
drop database if exists test1;
 
8
create database test1;
 
9
use test1;
 
10
CREATE TABLE `t1` (
 
11
`id` int(10) unsigned NOT NULL auto_increment,
 
12
`fname` varchar(100) default NULL,
 
13
PRIMARY KEY  (`id`)
 
14
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
 
15
INSERT INTO `t1` VALUES (1, 'blablabla');
 
16
CREATE TABLE `t2` (
 
17
`id` int(10) NOT NULL auto_increment,
 
18
`comment` varchar(255) NOT NULL default '',
 
19
PRIMARY KEY  (`id`)
 
20
) ENGINE=MyISAM  AUTO_INCREMENT=3 ;
 
21
INSERT INTO `t2` VALUES (1, 'testtest 1');
 
22
INSERT INTO `t2` VALUES (2, 'test 2');
 
23
CREATE PROCEDURE simpleproc3 ()
 
24
NOT DETERMINISTIC
 
25
BEGIN
 
26
INSERT INTO t1 (fname) (SELECT t2.comment FROM t2 WHERE t2.id = '1');
 
27
INSERT INTO t1 (fname) VALUES('test');
 
28
END
 
29
$
 
30
CALL simpleproc3();
 
31
select * from t2;
 
32
id      comment
 
33
1       testtest 1
 
34
2       test 2
 
35
TRUNCATE TABLE `t1`;
 
36
CALL simpleproc3();
 
37
select * from t1;
 
38
id      fname
 
39
1       testtest 1
 
40
2       test
 
41
use test1;
 
42
select * from t1;
 
43
id      fname
 
44
1       testtest 1
 
45
2       test
 
46
drop database test1;
 
47
include/rpl_end.inc