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

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_func003.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('Statement may not be safe to log in statement format.');
 
7
DROP FUNCTION IF EXISTS test.f1;
 
8
DROP TABLE IF EXISTS test.t1;
 
9
CREATE TABLE test.t1 (a INT NOT NULL AUTO_INCREMENT, c CHAR(16),PRIMARY KEY(a))ENGINE=INNODB;
 
10
create function test.f1() RETURNS CHAR(16) 
 
11
BEGIN
 
12
DECLARE tmp CHAR(16);
 
13
DECLARE var_name FLOAT;
 
14
SET var_name = RAND();
 
15
IF var_name > .6 
 
16
THEN SET tmp = 'Texas';
 
17
ELSE SET tmp = 'MySQL';
 
18
END IF;
 
19
RETURN tmp;
 
20
END|
 
21
INSERT INTO test.t1 VALUES (null,test.f1()),(null,test.f1()),(null,test.f1());
 
22
INSERT INTO test.t1 VALUES (null,test.f1()),(null,test.f1()),(null,test.f1());
 
23
SET AUTOCOMMIT=0;
 
24
START TRANSACTION;
 
25
INSERT INTO test.t1 VALUES (null,test.f1());
 
26
ROLLBACK;
 
27
SET AUTOCOMMIT=1;
 
28
DROP FUNCTION test.f1;
 
29
DROP TABLE test.t1;
 
30
include/rpl_end.inc