Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 420 lines (369 sloc) 11.769 kB
35a7924 @agentzh use empty filetype.
agentzh authored
1 # vi:filetype=
40a80a2 @agentzh added sanity.t, not passing yet.
agentzh authored
2
3 use lib 'lib';
99462f8 @agentzh implemented func ngx_http_drizzle_output_row and fixed the test.
agentzh authored
4 use Test::Nginx::Socket;
40a80a2 @agentzh added sanity.t, not passing yet.
agentzh authored
5
111204e @agentzh fixed the connection pool bug reported by Piotr Sikora. overflow=reje…
agentzh authored
6 repeat_each(2);
37bbc79 @agentzh updated README for keepalive sample config.
agentzh authored
7
7831468 @agentzh added more tests for various drizzle_buffer_size values.
agentzh authored
8 plan tests => repeat_each() * 2 * blocks() + 2 * repeat_each() * 6;
40a80a2 @agentzh added sanity.t, not passing yet.
agentzh authored
9
7b3076e @PiotrSikora Use $TEST_NGINX_MYSQL_PORT instead of hardcoded value.
PiotrSikora authored
10 $ENV{TEST_NGINX_MYSQL_PORT} ||= 3306;
cc6265c @agentzh introduced a TEST_NGINX_MYSQL_HOST variable in the test suite. now we…
agentzh authored
11 $ENV{TEST_NGINX_MYSQL_HOST} ||= '127.0.0.1';
7b3076e @PiotrSikora Use $TEST_NGINX_MYSQL_PORT instead of hardcoded value.
PiotrSikora authored
12
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
13 our $http_config = <<'_EOC_';
7e5a9a2 @PiotrSikora Ops, fix database/backend/foo fiasco.
PiotrSikora authored
14 upstream backend {
cc6265c @agentzh introduced a TEST_NGINX_MYSQL_HOST variable in the test suite. now we…
agentzh authored
15 drizzle_server $TEST_NGINX_MYSQL_HOST:$TEST_NGINX_MYSQL_PORT protocol=mysql
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
16 dbname=ngx_test user=ngx_test password=ngx_test;
cc2b3c9 @agentzh fixed the timeout mechanism: we should set timers for both the read a…
agentzh authored
17 #drizzle_keepalive max=10 overflow=ignore mode=single;
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
18 }
19 _EOC_
20
21 worker_connections(128);
8196aa2 @agentzh added more debugging outputs.
agentzh authored
22 #master_on();
23 #log_level('warn');
40a80a2 @agentzh added sanity.t, not passing yet.
agentzh authored
24
99462f8 @agentzh implemented func ngx_http_drizzle_output_row and fixed the test.
agentzh authored
25 no_diff();
26
f51d29d @agentzh implemented the counters for successively successfully used connections.
agentzh authored
27 run_tests();
28
40a80a2 @agentzh added sanity.t, not passing yet.
agentzh authored
29 __DATA__
30
31 === TEST 1: sanity
0f1b9e5 @agentzh commented the test case heavily.
agentzh authored
32 little-endian systems only
33
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
34 --- http_config eval: $::http_config
40a80a2 @agentzh added sanity.t, not passing yet.
agentzh authored
35 --- config
36 location /mysql {
7d23ac0 @agentzh the upstream branch runs (in some sense).
agentzh authored
37 drizzle_pass backend;
38 #drizzle_dbname $dbname;
39 drizzle_query 'select * from cats';
40a80a2 @agentzh added sanity.t, not passing yet.
agentzh authored
40 }
41 --- request
484dc04 @agentzh lots of debbugging code added.
agentzh authored
42 GET /mysql
9b16b56 @agentzh now ngx_drizzle emits the "X-Resty-DBD-Module: ngx_drizzle 0.0.1" hea…
agentzh authored
43 --- response_headers_like
44 X-Resty-DBD-Module: ngx_drizzle \d+\.\d+\.\d+
45 Content-Type: application/x-resty-dbd-stream
99462f8 @agentzh implemented func ngx_http_drizzle_output_row and fixed the test.
agentzh authored
46 --- response_body eval
0f1b9e5 @agentzh commented the test case heavily.
agentzh authored
47 "\x{00}". # endian
3915894 @agentzh updated the tests to reflect recent changes.
agentzh authored
48 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
37bbc79 @agentzh updated README for keepalive sample config.
agentzh authored
49 "\x{00}". # result type
50 "\x{00}\x{00}". # std errcode
51 "\x{00}\x{00}" . # driver errcode
52 "\x{00}\x{00}". # driver errstr len
53 "". # driver errstr data
54 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
55 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
56 "\x{02}\x{00}". # col count
8dad933 @chaoslawful modified unit-tests
chaoslawful authored
57 "\x{09}\x{00}". # std col type (integer)
37bbc79 @agentzh updated README for keepalive sample config.
agentzh authored
58 "\x{03}\x{00}". # drizzle col type
59 "\x{02}\x{00}". # col name len
60 "id". # col name data
61 "\x{13}\x{80}". # std col type (blob/str)
62 "\x{fc}\x{00}". # drizzle col type
63 "\x{04}\x{00}". # col name len
64 "name". # col name data
65 "\x{01}". # valid row flag
66 "\x{01}\x{00}\x{00}\x{00}". # field len
67 "2". # field data
3915894 @agentzh updated the tests to reflect recent changes.
agentzh authored
68 "\x{ff}\x{ff}\x{ff}\x{ff}". # field len
37bbc79 @agentzh updated README for keepalive sample config.
agentzh authored
69 "". # field data
70 "\x{01}". # valid row flag
71 "\x{01}\x{00}\x{00}\x{00}". # field len
72 "3". # field data
73 "\x{03}\x{00}\x{00}\x{00}". # field len
74 "bob". # field data
75 "\x{00}" # row list terminator
9037b10 @agentzh copied all we need in ngx_http_upstream.c to our util.c to elimiate n…
agentzh authored
76 --- timeout: 60
37bbc79 @agentzh updated README for keepalive sample config.
agentzh authored
77
d0ba4aa @agentzh actually implemented the overflow=reject option.
agentzh authored
78
e6f24f7 @agentzh now drizzle_pass supports dynamic upstream names, like this: set $bac…
agentzh authored
79
37bbc79 @agentzh updated README for keepalive sample config.
agentzh authored
80 === TEST 2: keep-alive
81 little-endian systems only
82
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
83 --- http_config eval: $::http_config
37bbc79 @agentzh updated README for keepalive sample config.
agentzh authored
84 --- config
85 location /mysql {
86 drizzle_pass backend;
87 #drizzle_dbname $dbname;
88 drizzle_query 'select * from cats';
89 }
90 --- request
91 GET /mysql
92 --- response_body eval
93 "\x{00}". # endian
3915894 @agentzh updated the tests to reflect recent changes.
agentzh authored
94 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
0f1b9e5 @agentzh commented the test case heavily.
agentzh authored
95 "\x{00}". # result type
96 "\x{00}\x{00}". # std errcode
97 "\x{00}\x{00}" . # driver errcode
98 "\x{00}\x{00}". # driver errstr len
99 "". # driver errstr data
100 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
101 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
102 "\x{02}\x{00}". # col count
8dad933 @chaoslawful modified unit-tests
chaoslawful authored
103 "\x{09}\x{00}". # std col type (integer)
0f1b9e5 @agentzh commented the test case heavily.
agentzh authored
104 "\x{03}\x{00}". # drizzle col type
105 "\x{02}\x{00}". # col name len
106 "id". # col name data
876a576 @agentzh more comments added to the test case.
agentzh authored
107 "\x{13}\x{80}". # std col type (blob/str)
0f1b9e5 @agentzh commented the test case heavily.
agentzh authored
108 "\x{fc}\x{00}". # drizzle col type
109 "\x{04}\x{00}". # col name len
110 "name". # col name data
111 "\x{01}". # valid row flag
112 "\x{01}\x{00}\x{00}\x{00}". # field len
113 "2". # field data
3915894 @agentzh updated the tests to reflect recent changes.
agentzh authored
114 "\x{ff}\x{ff}\x{ff}\x{ff}". # field len
0f1b9e5 @agentzh commented the test case heavily.
agentzh authored
115 "". # field data
116 "\x{01}". # valid row flag
117 "\x{01}\x{00}\x{00}\x{00}". # field len
118 "3". # field data
119 "\x{03}\x{00}\x{00}\x{00}". # field len
120 "bob". # field data
121 "\x{00}" # row list terminator
c6374a4 @agentzh added a new directive drizzle_keepalive.
agentzh authored
122
d0ba4aa @agentzh actually implemented the overflow=reject option.
agentzh authored
123
124
125 === TEST 3: update
c6374a4 @agentzh added a new directive drizzle_keepalive.
agentzh authored
126 little-endian systems only
127
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
128 --- http_config eval: $::http_config
c6374a4 @agentzh added a new directive drizzle_keepalive.
agentzh authored
129 --- config
130 location /mysql {
131 drizzle_pass backend;
132 #drizzle_dbname $dbname;
133 drizzle_query "update cats set name='bob' where name='bob'";
134 }
135 --- request
136 GET /mysql
137 --- response_body eval
138 "\x{00}". # endian
3915894 @agentzh updated the tests to reflect recent changes.
agentzh authored
139 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
c6374a4 @agentzh added a new directive drizzle_keepalive.
agentzh authored
140 "\x{00}". # result type
141 "\x{00}\x{00}". # std errcode
142 "\x{00}\x{00}" . # driver errcode
143 "\x{28}\x{00}". # driver errstr len
144 "Rows matched: 1 Changed: 0 Warnings: 0". # driver errstr data
145 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
146 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
76cd8a0 @agentzh updated the RDS format to version 0.0.2.
agentzh authored
147 "\x{00}\x{00}" # col count
40a80a2 @agentzh added sanity.t, not passing yet.
agentzh authored
148
350cc7d @agentzh removed the LICENSE file because we already have one in README.
agentzh authored
149
150
c32f88d @agentzh reindexed t/sanity.t
agentzh authored
151 === TEST 4: select empty result
350cc7d @agentzh removed the LICENSE file because we already have one in README.
agentzh authored
152 little-endian systems only
153
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
154 --- http_config eval: $::http_config
350cc7d @agentzh removed the LICENSE file because we already have one in README.
agentzh authored
155 --- config
156 location /mysql {
157 drizzle_pass backend;
158 drizzle_query "select * from cats where name='tom'";
159 }
160 --- request
161 GET /mysql
162 --- response_body eval
163 "\x{00}". # endian
3915894 @agentzh updated the tests to reflect recent changes.
agentzh authored
164 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
350cc7d @agentzh removed the LICENSE file because we already have one in README.
agentzh authored
165 "\x{00}". # result type
166 "\x{00}\x{00}". # std errcode
167 "\x{00}\x{00}" . # driver errcode
168 "\x{00}\x{00}". # driver errstr len
169 "". # driver errstr data
170 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
171 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
172 "\x{02}\x{00}". # col count
8dad933 @chaoslawful modified unit-tests
chaoslawful authored
173 "\x{09}\x{00}". # std col type (integer)
350cc7d @agentzh removed the LICENSE file because we already have one in README.
agentzh authored
174 "\x{03}\x{00}". # drizzle col type
175 "\x{02}\x{00}". # col name len
176 "id". # col name data
177 "\x{13}\x{80}". # std col type (blob/str)
178 "\x{fc}\x{00}". # drizzle col type
179 "\x{04}\x{00}". # col name len
180 "name". # col name data
181 "\x{00}" # row list terminator
182
9b16b56 @agentzh now ngx_drizzle emits the "X-Resty-DBD-Module: ngx_drizzle 0.0.1" hea…
agentzh authored
183
c32f88d @agentzh reindexed t/sanity.t
agentzh authored
184
185 === TEST 5: update & no module header
9b16b56 @agentzh now ngx_drizzle emits the "X-Resty-DBD-Module: ngx_drizzle 0.0.1" hea…
agentzh authored
186 little-endian systems only
187
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
188 --- http_config eval: $::http_config
9b16b56 @agentzh now ngx_drizzle emits the "X-Resty-DBD-Module: ngx_drizzle 0.0.1" hea…
agentzh authored
189 --- config
190 location /mysql {
191 drizzle_pass backend;
192 drizzle_module_header off;
193 drizzle_query "update cats set name='bob' where name='bob'";
194 }
195 --- request
196 GET /mysql
197 --- response_headers
198 X-Resty-DBD-Module:
199 Content-Type: application/x-resty-dbd-stream
200 --- response_body eval
201 "\x{00}". # endian
3915894 @agentzh updated the tests to reflect recent changes.
agentzh authored
202 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
9b16b56 @agentzh now ngx_drizzle emits the "X-Resty-DBD-Module: ngx_drizzle 0.0.1" hea…
agentzh authored
203 "\x{00}". # result type
204 "\x{00}\x{00}". # std errcode
205 "\x{00}\x{00}" . # driver errcode
206 "\x{28}\x{00}". # driver errstr len
207 "Rows matched: 1 Changed: 0 Warnings: 0". # driver errstr data
208 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
209 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
76cd8a0 @agentzh updated the RDS format to version 0.0.2.
agentzh authored
210 "\x{00}\x{00}" # col count
9b16b56 @agentzh now ngx_drizzle emits the "X-Resty-DBD-Module: ngx_drizzle 0.0.1" hea…
agentzh authored
211
e6f24f7 @agentzh now drizzle_pass supports dynamic upstream names, like this: set $bac…
agentzh authored
212
213
214 === TEST 6: variables in drizzle_pass
215 little-endian systems only
216
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
217 --- http_config eval: $::http_config
e6f24f7 @agentzh now drizzle_pass supports dynamic upstream names, like this: set $bac…
agentzh authored
218 --- config
219 location /mysql {
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
220 set $foo backend;
221 drizzle_pass $foo;
e6f24f7 @agentzh now drizzle_pass supports dynamic upstream names, like this: set $bac…
agentzh authored
222 drizzle_module_header off;
223 drizzle_query "update cats set name='bob' where name='bob'";
224 }
225 --- request
226 GET /mysql
227 --- response_headers
228 X-Resty-DBD-Module:
229 Content-Type: application/x-resty-dbd-stream
230 --- response_body eval
231 "\x{00}". # endian
3915894 @agentzh updated the tests to reflect recent changes.
agentzh authored
232 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
e6f24f7 @agentzh now drizzle_pass supports dynamic upstream names, like this: set $bac…
agentzh authored
233 "\x{00}". # result type
234 "\x{00}\x{00}". # std errcode
235 "\x{00}\x{00}" . # driver errcode
236 "\x{28}\x{00}". # driver errstr len
237 "Rows matched: 1 Changed: 0 Warnings: 0". # driver errstr data
238 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
239 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
240 "\x{00}\x{00}" # col count
241
b6d592f @agentzh added new directive "drizzle_buffer_size" which is default to the pag…
agentzh authored
242
7831468 @agentzh added more tests for various drizzle_buffer_size values.
agentzh authored
243
244 === TEST 7: sanity (using little bufs, size 1)
b6d592f @agentzh added new directive "drizzle_buffer_size" which is default to the pag…
agentzh authored
245 little-endian systems only
246
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
247 --- http_config eval: $::http_config
b6d592f @agentzh added new directive "drizzle_buffer_size" which is default to the pag…
agentzh authored
248 --- config
249 location /mysql {
250 drizzle_pass backend;
251 #drizzle_dbname $dbname;
252 drizzle_query 'select * from cats';
253 drizzle_buffer_size 1;
254 }
255 --- request
256 GET /mysql
257 --- response_headers_like
258 X-Resty-DBD-Module: ngx_drizzle \d+\.\d+\.\d+
259 Content-Type: application/x-resty-dbd-stream
260 --- response_body eval
7831468 @agentzh added more tests for various drizzle_buffer_size values.
agentzh authored
261 "\x{00}". # endian
262 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
263 "\x{00}". # result type
264 "\x{00}\x{00}". # std errcode
265 "\x{00}\x{00}" . # driver errcode
266 "\x{00}\x{00}". # driver errstr len
267 "". # driver errstr data
268 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
269 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
270 "\x{02}\x{00}". # col count
271 "\x{09}\x{00}". # std col type (integer)
272 "\x{03}\x{00}". # drizzle col type
273 "\x{02}\x{00}". # col name len
274 "id". # col name data
275 "\x{13}\x{80}". # std col type (blob/str)
276 "\x{fc}\x{00}". # drizzle col type
277 "\x{04}\x{00}". # col name len
278 "name". # col name data
279 "\x{01}". # valid row flag
280 "\x{01}\x{00}\x{00}\x{00}". # field len
281 "2". # field data
282 "\x{ff}\x{ff}\x{ff}\x{ff}". # field len
283 "". # field data
284 "\x{01}". # valid row flag
285 "\x{01}\x{00}\x{00}\x{00}". # field len
286 "3". # field data
287 "\x{03}\x{00}\x{00}\x{00}". # field len
288 "bob". # field data
289 "\x{00}" # row list terminator
290 --- timeout: 60
291
292
293
294 === TEST 8: sanity (using little bufs, size 2)
295 little-endian systems only
296
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
297 --- http_config eval: $::http_config
7831468 @agentzh added more tests for various drizzle_buffer_size values.
agentzh authored
298 --- config
299 location /mysql {
300 drizzle_pass backend;
301 #drizzle_dbname $dbname;
302 drizzle_query 'select * from cats';
303 drizzle_buffer_size 2;
304 }
305 --- request
306 GET /mysql
307 --- response_headers_like
308 X-Resty-DBD-Module: ngx_drizzle \d+\.\d+\.\d+
309 Content-Type: application/x-resty-dbd-stream
310 --- response_body eval
311 "\x{00}". # endian
312 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
313 "\x{00}". # result type
314 "\x{00}\x{00}". # std errcode
315 "\x{00}\x{00}" . # driver errcode
316 "\x{00}\x{00}". # driver errstr len
317 "". # driver errstr data
318 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
319 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
320 "\x{02}\x{00}". # col count
321 "\x{09}\x{00}". # std col type (integer)
322 "\x{03}\x{00}". # drizzle col type
323 "\x{02}\x{00}". # col name len
324 "id". # col name data
325 "\x{13}\x{80}". # std col type (blob/str)
326 "\x{fc}\x{00}". # drizzle col type
327 "\x{04}\x{00}". # col name len
328 "name". # col name data
329 "\x{01}". # valid row flag
330 "\x{01}\x{00}\x{00}\x{00}". # field len
331 "2". # field data
332 "\x{ff}\x{ff}\x{ff}\x{ff}". # field len
333 "". # field data
334 "\x{01}". # valid row flag
335 "\x{01}\x{00}\x{00}\x{00}". # field len
336 "3". # field data
337 "\x{03}\x{00}\x{00}\x{00}". # field len
338 "bob". # field data
339 "\x{00}" # row list terminator
340 --- timeout: 60
341
342
343
344 === TEST 9: sanity (using little bufs, size 3)
345 little-endian systems only
346
88aff08 @PiotrSikora Use buildfarm's credentials and auto-initialize database for tests.
PiotrSikora authored
347 --- http_config eval: $::http_config
7831468 @agentzh added more tests for various drizzle_buffer_size values.
agentzh authored
348 --- config
349 location /mysql {
350 drizzle_pass backend;
351 #drizzle_dbname $dbname;
352 drizzle_query 'select * from cats';
353 drizzle_buffer_size 3;
354 }
355 --- request
356 GET /mysql
357 --- response_headers_like
358 X-Resty-DBD-Module: ngx_drizzle \d+\.\d+\.\d+
359 Content-Type: application/x-resty-dbd-stream
360 --- response_body eval
b6d592f @agentzh added new directive "drizzle_buffer_size" which is default to the pag…
agentzh authored
361 "\x{00}". # endian
362 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
363 "\x{00}". # result type
364 "\x{00}\x{00}". # std errcode
365 "\x{00}\x{00}" . # driver errcode
366 "\x{00}\x{00}". # driver errstr len
367 "". # driver errstr data
368 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
369 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
370 "\x{02}\x{00}". # col count
371 "\x{09}\x{00}". # std col type (integer)
372 "\x{03}\x{00}". # drizzle col type
373 "\x{02}\x{00}". # col name len
374 "id". # col name data
375 "\x{13}\x{80}". # std col type (blob/str)
376 "\x{fc}\x{00}". # drizzle col type
377 "\x{04}\x{00}". # col name len
378 "name". # col name data
379 "\x{01}". # valid row flag
380 "\x{01}\x{00}\x{00}\x{00}". # field len
381 "2". # field data
382 "\x{ff}\x{ff}\x{ff}\x{ff}". # field len
383 "". # field data
384 "\x{01}". # valid row flag
385 "\x{01}\x{00}\x{00}\x{00}". # field len
386 "3". # field data
387 "\x{03}\x{00}\x{00}\x{00}". # field len
388 "bob". # field data
389 "\x{00}" # row list terminator
390 --- timeout: 60
391
cc2b3c9 @agentzh fixed the timeout mechanism: we should set timers for both the read a…
agentzh authored
392
393
394 === TEST 10: update
395 little-endian systems only
396
397 --- http_config eval: $::http_config
398 --- config
399 location /mysql {
400 drizzle_pass backend;
401 #drizzle_dbname $dbname;
402 drizzle_query "update cats set name='bob' where name='bob'";
403 }
404 --- request
405 GET /mysql
406 --- response_body eval
407 "\x{00}". # endian
408 "\x{03}\x{00}\x{00}\x{00}". # format version 0.0.3
409 "\x{00}". # result type
410 "\x{00}\x{00}". # std errcode
411 "\x{00}\x{00}" . # driver errcode
412 "\x{28}\x{00}". # driver errstr len
413 "Rows matched: 1 Changed: 0 Warnings: 0". # driver errstr data
414 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
415 "\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
416 "\x{00}\x{00}" # col count
417
418
419
Something went wrong with that request. Please try again.