~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ==== Purpose ====
 
2
#
 
3
# The same as 'connection $rpl_connection_name', but it can also
 
4
# prints the connection name.  The connection is printed if $rpl_debug
 
5
# is set, or if rpl_connection.inc is not called between two
 
6
# invocations of begin_include_file.inc/end_include_file.inc.
 
7
# Otherwise the connection name is not printed.
 
8
#
 
9
#
 
10
# ==== Usage ====
 
11
#
 
12
# --let $rpl_connection_name= master
 
13
# [--let $rpl_debug= 1]
 
14
# --source include/rpl_connection.inc
 
15
#
 
16
# Parameters:
 
17
#   $rpl_connection_name
 
18
#     Name of the connection to connect to.
 
19
#
 
20
#   $rpl_debug
 
21
#     By default, the connection name is printed only when this file
 
22
#     is sourced from a top-level test script. If $rpl_debug is set,
 
23
#     the connection name is also printed whenever auxiliary files
 
24
#     like rpl_init.inc change connection.
 
25
 
 
26
 
 
27
if (!$rpl_connection_name)
 
28
{
 
29
  --die ERROR IN TEST: you must set $rpl_connection_name before sourcing rpl_connection.inc
 
30
}
 
31
 
 
32
# This is the same as "if (!$_rpl_include_file_depth || $rpl_debug)",
 
33
# but the mysqltest language doesn't have boolean operations.
 
34
 
 
35
if (!$_include_file_depth)
 
36
{
 
37
  --echo [connection $rpl_connection_name]
 
38
}
 
39
if ($_include_file_depth)
 
40
{
 
41
  if ($rpl_debug)
 
42
  {
 
43
    --echo [connection $rpl_connection_name]
 
44
  }
 
45
}
 
46
--connection $rpl_connection_name
 
47
--let $rpl_connection_name=