summaryrefslogtreecommitdiff
path: root/mysql-test/r/ndb_index.result
blob: 5702552b0b53f2561e5f25c78d766039d004718e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
drop table if exists t1;
CREATE TABLE t1 (
PORT varchar(16) NOT NULL,
ACCESSNODE varchar(16) NOT NULL,
POP varchar(48) NOT NULL,
ACCESSTYPE int unsigned NOT NULL,
CUSTOMER_ID varchar(20) collate latin1_bin NOT NULL,
PROVIDER varchar(16),
TEXPIRE int unsigned,
NUM_IP int unsigned,
LEASED_NUM_IP int unsigned,
LOCKED_IP int unsigned,
STATIC_DNS int unsigned,
SUSPENDED_SERVICE int unsigned,
SUSPENDED_REASON int unsigned,
BGP_COMMUNITY int unsigned,
INDEX CUSTOMER_ID_INDEX(CUSTOMER_ID),
INDEX FQPN_INDEX(POP,ACCESSNODE,PORT),
PRIMARY KEY(POP,ACCESSNODE,PORT,ACCESSTYPE)
) engine=ndbcluster;
INSERT INTO t1 VALUES ('port67', 'node78', 'pop98', 1, 'kllopmn', 'pr_43', 121212, 1, 2, 3, 8, NULL, NULL, NULL);
INSERT INTO t1 VALUES ('port67', 'node78', 'pop99', 2, 'klkighh', 'pr_44', 121213, 3, 3, 6, 7, NULL, NULL, NULL);
INSERT INTO t1 VALUES ('port79', 'node79', 'pop79', 2, 'kpongfaa', 'pr_44', 981213, 2, 4, 10, 11, 2, 99, 1278);
select port, accessnode, pop, accesstype  from t1 where port='port67' order by accesstype;
port	accessnode	pop	accesstype
port67	node78	pop98	1
port67	node78	pop99	2
select port, accessnode, pop, accesstype  from t1 where port='foo';
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where accessnode='node78' order by accesstype;
port	accessnode	pop	accesstype
port67	node78	pop98	1
port67	node78	pop99	2
select port, accessnode, pop, accesstype  from t1 where accessnode='foo';
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where pop='pop98';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where pop='pop98';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where pop='pop98';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where pop='pop98' order by accesstype;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where pop='foo';
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where accesstype=1;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where accesstype=2 order by port;
port	accessnode	pop	accesstype
port67	node78	pop99	2
port79	node79	pop79	2
select port, accessnode, pop, accesstype  from t1 where accesstype=98 order by port;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where customer_id='kllopmn';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where customer_id='KLLOPMN';
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where customer_id='kLLoPMn';
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where customer_id='foo';
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where provider='pr_43';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where provider='foo';
port	accessnode	pop	accesstype
select port, accessnode from t1 where texpire=121212;
port	accessnode
port67	node78
select port, accessnode from t1 where texpire=2323;
port	accessnode
select port, accessnode, pop, accesstype  from t1 where num_ip=1;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where num_ip=89;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where leased_num_ip=2;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where leased_num_ip=89;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where locked_ip=3;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where locked_ip=89;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where static_dns=8;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where static_dns=89;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where suspended_service=8;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where suspended_service=89;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where suspended_reason=NULL;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where suspended_reason=89;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where suspended_reason=0;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where bgp_community=NULL;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where bgp_community=89;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where bgp_community=0;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype from t1 where port='port67' and accessnode='node78' and pop='pop98' and accesstype=1;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype from t1 where port='port67' and accesstype=1 and accessnode='node78' and pop='pop98';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype from t1 where pop='pop98' and port='port67' and accesstype=1 and accessnode='node78';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode from t1 where port='foo' and accessnode='foo' and pop='foo' and accesstype=99;
port	accessnode
select port, accessnode, pop, accesstype from t1 where port='port67' and pop='pop98' and accesstype=1;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype from t1 where accesstype=1 and accessnode='node78' and pop='pop98';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype from t1 where  port='port67' and accesstype=1 and accessnode='node78';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode from t1 where port='foo' and accessnode='foo' and pop='foo';
port	accessnode
select port, accessnode, pop, accesstype  from t1 where customer_id='kllopmn';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where customer_id='kllopmn' and accesstype=1;
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where customer_id='kllopmn' and accesstype=2;
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where accesstype=2 and customer_id='kllopmn';
port	accessnode	pop	accesstype
select port, accessnode, pop, accesstype  from t1 where pop='pop98' and accessnode='node78' and port='port67';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where pop='pop98' and accessnode='node78' and port='port67' and customer_id='kllopmn';
port	accessnode	pop	accesstype
port67	node78	pop98	1
select port, accessnode, pop, accesstype  from t1 where pop='pop98' and accessnode='node78' and port='port67' and customer_id='foo';
port	accessnode	pop	accesstype
drop table t1;