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

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/r/rpl_sf.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
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
set global log_bin_trust_function_creators=0;
 
8
set binlog_format=STATEMENT;
 
9
create function fn16456()
 
10
returns int
 
11
begin
 
12
return unix_timestamp();
 
13
end|
 
14
ERROR HY000: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
 
15
set global log_bin_trust_function_creators=1;
 
16
create function fn16456()
 
17
returns int
 
18
begin
 
19
return unix_timestamp();
 
20
end|
 
21
set global log_bin_trust_function_creators=0;
 
22
set binlog_format=ROW;
 
23
select fn16456();
 
24
fn16456()
 
25
timestamp
 
26
set binlog_format=STATEMENT;
 
27
select fn16456();
 
28
ERROR HY000: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
 
29
drop function fn16456;