~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# === Name
 
3
#
 
4
# binlog_inject_error.inc
 
5
#
 
6
# === Description
 
7
#
 
8
# Inject binlog write error when running the query, verifies that the
 
9
# query is ended with the proper error (ER_ERROR_ON_WRITE).
 
10
#
 
11
# === Usage
 
12
#
 
13
# let query= 'CREATE TABLE t1 (a INT)';
 
14
# source include/binlog_inject_error.inc;
 
15
#
 
16
 
 
17
SET GLOBAL debug='d,injecting_fault_writing';
 
18
--echo $query;
 
19
--replace_regex /(errno: .*)/(errno: #)/
 
20
--error ER_ERROR_ON_WRITE
 
21
--eval $query
 
22
SET GLOBAL debug='';