~ubuntu-branches/ubuntu/utopic/mysql-5.6/utopic-proposed

« back to all changes in this revision

Viewing changes to mysql-test/include/wait_for_slave_sql_error.inc

  • Committer: Package Import Robot
  • Author(s): James Page, Bjoern Boschman
  • Date: 2014-07-21 14:01:12 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20140721140112-1yqdrd6ds8y7nt76
Tags: 5.6.19-1~exp1
[ Bjoern Boschman ]
* SECURITY UPDATE: New upstream release (LP: #1330168).
  - www.oracle.com/technetwork/topics/security/cpujul2014-1972956.html
  - CVE-2014-2484
  - CVE-2014-4258
  - CVE-2014-4260
  - CVE-2014-4238
  - CVE-2014-4233
  - CVE-2014-4240
  - CVE-2014-4214

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#
7
7
# ==== Usage ====
8
8
#
9
 
# --let $slave_sql_errno= NUMBER
 
9
# --let $slave_sql_errno= NUMBER [, NUMBER ...] [# comment]
10
10
# [--let $show_slave_sql_error= 1]
11
11
# [--let $rpl_debug= 1]
12
12
# [--let $slave_timeout= NUMBER]
14
14
#
15
15
# Parameters:
16
16
#   $slave_sql_errno
17
 
#     The expected SQL error number.  This is required.
 
17
#     The expected SQL error numbers. This can be either a single
 
18
#     number, or a comma-separated list of numbers. Examples:
 
19
#       --let $slave_sql_errno= 1040, 1053, 2002, 2003, 2006, 2013
 
20
#       --let $slave_sql_errno= 1593 # ER_SLAVE_FATAL_ERROR
 
21
#     It is allowed to add a comment at the end of the line, and it
 
22
#     is strongly advised to put the symbolic name of the error in
 
23
#     this comment, like the example above.
18
24
#     (After BUG#41956 has been fixed, this will be required to be a
19
25
#     symbolic name instead of a number.)
20
26
#
50
56
  --die !!!ERROR IN TEST: you must set \$slave_sql_errno before sourcing wait_for_slave_sql_error.inc
51
57
}
52
58
 
53
 
if (`SELECT $_wfsse_errno NOT IN ($slave_sql_errno)`) {
 
59
# Strip away comments
 
60
--let $_slave_sql_errno= `SELECT IF(LOCATE('#', '$slave_sql_errno') != 0, SUBSTR('$slave_sql_errno', 1, LOCATE('#', '$slave_sql_errno') - 1), '$slave_sql_errno')`
 
61
 
 
62
if ($rpl_debug)
 
63
{
 
64
  --echo # debug: slave_sql_errno='$_slave_sql_errno'; stripped from comments='$_slave_sql_errno' wfsie_errno='$_wfsie_errno'
 
65
}
 
66
 
 
67
if (`SELECT $_wfsse_errno NOT IN ($_slave_sql_errno)`) {
54
68
  --echo **** Slave stopped with wrong error code: $_wfsse_errno (expected $slave_sql_errno) ****
55
69
  source include/show_rpl_debug_info.inc;
56
70
  --echo **** Slave stopped with wrong error code: $_wfsse_errno (expected $slave_sql_errno) ****