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

« back to all changes in this revision

Viewing changes to mysql-test/suite/ndb_team/t/ndb_backup_print.test

  • 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
-- source include/have_ndb.inc
 
2
-- source include/ndb_default_cluster.inc
 
3
-- source include/not_embedded.inc
 
4
 
 
5
--disable_warnings
 
6
use test;
 
7
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
 
8
--enable_warnings
 
9
 
 
10
#NO.1 test output of backup
 
11
--exec $NDB_MGM --no-defaults -e "start backup" |sed -e 's/[0-9]//g' |sed -e 's/localhost//g' |sed -e 's/\.\.\.*//g'
 
12
 
 
13
create table t1
 
14
 (pk int key
 
15
  ,a1 BIT(1), a2 BIT(5), a3 BIT(33), a4 BIT(63), a5 BIT(64)
 
16
  ,b1 TINYINT, b2 TINYINT UNSIGNED
 
17
  ,c1 SMALLINT, c2 SMALLINT UNSIGNED
 
18
  ,d1 INT, d2 INT UNSIGNED
 
19
  ,e1 BIGINT, e2 BIGINT UNSIGNED
 
20
  ,f1 CHAR(1) BINARY, f2 CHAR(32) BINARY, f3 CHAR(255) BINARY
 
21
  ,g1 VARCHAR(32) BINARY, g2 VARCHAR(255) BINARY, g3 VARCHAR(1000) BINARY
 
22
  ,h1 BINARY(1), h2 BINARY(8), h3 BINARY(255)
 
23
  ,i1 VARBINARY(32), i2 VARBINARY(255), i3 VARBINARY(1000)
 
24
 ) engine ndb;
 
25
 
 
26
insert into t1 values
 
27
 (1
 
28
  ,0x1, 0x17, 0x789a, 0x789abcde, 0xfedc0001
 
29
  ,127, 255
 
30
  ,32767, 65535
 
31
  ,2147483647, 4294967295
 
32
  ,9223372036854775807, 18446744073709551615
 
33
  ,'1','12345678901234567890123456789012','123456789'
 
34
  ,'1','12345678901234567890123456789012','123456789'
 
35
  ,0x12,0x123456789abcdef0, 0x012345
 
36
  ,0x12,0x123456789abcdef0, 0x00123450
 
37
 );
 
38
 
 
39
insert into t1 values
 
40
 (2
 
41
  ,0, 0, 0, 0, 0
 
42
  ,-128, 0
 
43
  ,-32768, 0
 
44
  ,-2147483648, 0
 
45
  ,-9223372036854775808, 0
 
46
  ,'','',''
 
47
  ,'','',''
 
48
  ,0x0,0x0,0x0
 
49
  ,0x0,0x0,0x0
 
50
 );
 
51
 
 
52
insert into t1 values
 
53
 (3
 
54
  ,NULL,NULL,NULL,NULL,NULL
 
55
  ,NULL,NULL
 
56
  ,NULL,NULL
 
57
  ,NULL,NULL
 
58
  ,NULL,NULL
 
59
  ,NULL,NULL,NULL
 
60
  ,NULL,NULL,NULL
 
61
  ,NULL,NULL,NULL
 
62
  ,NULL,NULL,NULL
 
63
 );
 
64
 
 
65
#NO.2 test output of backup after some simple SQL operations
 
66
--exec $NDB_MGM --no-defaults -e "start backup" |sed -e 's/[0-9]//g' |sed -e 's/localhost//g' |sed -e 's/\.\.\.*//g'
 
67
 
 
68
drop table t1;