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

« back to all changes in this revision

Viewing changes to mysql-test/include/rpl_loaddata_charset.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
connection master;
 
2
--disable_warnings
 
3
DROP DATABASE IF EXISTS mysqltest;
 
4
--enable_warnings
 
5
 
 
6
CREATE DATABASE mysqltest CHARSET UTF8;
 
7
USE mysqltest;
 
8
CREATE TABLE t (cl varchar(100)) CHARSET UTF8;
 
9
 
 
10
if (!$LOAD_LOCAL)
 
11
{
 
12
  LOAD DATA INFILE '../../std_data/loaddata_utf8.dat' INTO TABLE t
 
13
  FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
 
14
}
 
15
if ($LOAD_LOCAL)
 
16
{
 
17
  LOAD DATA LOCAL INFILE './std_data/loaddata_utf8.dat' INTO TABLE t
 
18
  FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
 
19
}
 
20
 
 
21
save_master_pos;
 
22
echo ----------content on master----------;
 
23
SELECT hex(cl) FROM t;
 
24
 
 
25
connection slave;
 
26
sync_with_master;
 
27
echo ----------content on slave----------;
 
28
USE mysqltest;
 
29
SELECT hex(cl) FROM t;
 
30
 
 
31
connection master;
 
32
DROP DATABASE mysqltest;
 
33
save_master_pos;
 
34
connection slave;
 
35
sync_with_master;