null_char.sim 15.3 KB
Newer Older
S
slguan 已提交
1 2
#### TBASE-679
system sh/stop_dnodes.sh
S
slguan 已提交
3 4

system sh/deploy.sh -n dnode1 -i 1
H
hjxilinx 已提交
5
system sh/cfg.sh -n dnode1 -c walLevel -v 0
H
hjxilinx 已提交
6
system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3
S
slguan 已提交
7 8 9 10 11
system sh/exec.sh -n dnode1 -s start

sleep 3000
sql connect

12
print ========== NULL_char.sim
S
slguan 已提交
13 14 15 16 17 18

$db = db
sql drop database if exists $db
sql create database $db
sql use $db

19
#### case 0: field NULL, or 'NULL'
S
slguan 已提交
20
sql create table mt1 (ts timestamp, col1 int, col2 bigint, col3 float, col4 double, col5 binary(8), col6 bool, col7 smallint, col8 tinyint, col9 nchar(8)) tags (tag1 binary(8), tag2 nchar(8), tag3 int, tag4 bigint, tag5 bool, tag6 float)
21
sql create table st1 using mt1 tags (NULL, 'NULL', 100, 1000, 'false', 9.123)
S
slguan 已提交
22 23
sql insert into st1 values ('2019-01-01 09:00:00.000', 123, -123, 3.0, 4.0, 'binary', true, 1000, 121, 'nchar')
sql insert into st1 values ('2019-01-01 09:00:01.000', '456', '456', '3.33', '4.444', 'binary', 'true', '1001', '122', 'nchar')
24 25
sql insert into st1 values ('2019-01-01 09:00:02.000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
sql insert into st1 values ('2019-01-01 09:00:03.000', NULL, NULL, NULL, NULL, 'NULL', 'NULL', 2002, 127, 'NULL')
S
slguan 已提交
26 27 28 29 30

sql select * from mt1
if $rows != 4 then
  return -1
endi
31
if $data21 != NULL then
S
slguan 已提交
32 33
  return -1
endi
34
if $data22 != NULL then
S
slguan 已提交
35 36
  return -1
endi
37
if $data23 != NULL then
S
slguan 已提交
38 39
  return -1
endi
40
if $data24 != NULL then
S
slguan 已提交
41 42
  return -1
endi
43
if $data25 != NULL then
S
slguan 已提交
44 45
  return -1
endi
46
if $data26 != NULL then
S
slguan 已提交
47 48
  return -1
endi
49
if $data27 != NULL then
S
slguan 已提交
50 51
  return -1
endi
52
if $data28 != NULL then
S
slguan 已提交
53 54
  return -1
endi
55
if $data29 != NULL then
S
slguan 已提交
56 57 58
  return -1
endi

59
if $data31 != NULL then
S
slguan 已提交
60 61
  return -1
endi
62
if $data32 != NULL then
S
slguan 已提交
63 64 65 66 67 68 69 70 71 72
  return -1
endi
#if $data33 != 0.00000 then
#  print === expect 0.00000, actually $data33
#  return -1
#endi
#if $data34 != 0.000000000 then
#  print === expect 0.00000, actually $data34
#  return -1
#endi
73
if $data35 != NULL then
S
slguan 已提交
74 75
  return -1
endi
76
if $data36 != NULL then
S
slguan 已提交
77 78
  return -1
endi
79
if $data39 != NULL then
S
slguan 已提交
80 81 82 83
  return -1
endi


84
#### case 1: tag NULL, or 'NULL'
S
slguan 已提交
85
sql create table mt2 (ts timestamp, col1 int, col3 float, col5 binary(8), col6 bool, col9 nchar(8)) tags (tag1 binary(8), tag2 nchar(8), tag3 int, tag5 bool)
86
sql create table st2 using mt2 tags (NULL, 'NULL', 102, 'true')
H
Haojun Liao 已提交
87 88
sql select tag1, tag2, tag3, tag5 from st2
if $rows != 1 then
S
slguan 已提交
89 90
  return -1
endi
H
Haojun Liao 已提交
91 92
if $data00 != NULL then
  print ==1== expect: NULL, actually: $data00
S
slguan 已提交
93 94
  return -1
endi
H
Haojun Liao 已提交
95 96
if $data01 != NULL then
  print ==2== expect: NULL, actually: $data01
S
slguan 已提交
97 98
  return -1
endi
H
Haojun Liao 已提交
99 100
if $data02 != 102 then
  print ==3== expect: NULL, actually: $data02
S
slguan 已提交
101 102
  return -1
endi
H
Haojun Liao 已提交
103 104
if $data03 != 1 then
  print ==4== expect: 1, actually: $data03
S
slguan 已提交
105 106 107 108
  return -1
endi

sql create table st3 using mt2 tags (NULL, 'ABC', 103, 'FALSE')
H
Haojun Liao 已提交
109 110
sql select tag1, tag2, tag3, tag5 from st3
if $rows != 1 then
S
slguan 已提交
111 112
  return -1
endi
H
Haojun Liao 已提交
113 114
if $data00 != NULL then
  print ==5== expect: NULL, actually: $data00
S
slguan 已提交
115 116
  return -1
endi
H
Haojun Liao 已提交
117
if $data01 != ABC then
S
slguan 已提交
118 119
  return -1
endi
H
Haojun Liao 已提交
120
if $data02 != 103 then
S
slguan 已提交
121 122
  return -1
endi
H
Haojun Liao 已提交
123
if $data03 != 0 then
S
slguan 已提交
124 125 126 127 128 129
  return -1
endi

### bool:
sql_error create table stx using mt2 tags ('NULL', '123aBc', 104, '123')
sql_error create table sty using mt2 tags ('NULL', '123aBc', 104, 'xtz')
130
sql create table st4 using mt2 tags ('NULL', '123aBc', 104, 'NULL')
H
Haojun Liao 已提交
131 132
sql select tag1,tag2,tag3,tag5 from st4
if $rows != 1 then
S
slguan 已提交
133 134
  return -1
endi
H
Haojun Liao 已提交
135
if $data00 != NULL then
S
slguan 已提交
136 137
  return -1
endi
H
Haojun Liao 已提交
138
if $data01 != 123aBc then
S
slguan 已提交
139 140
  return -1
endi
H
Haojun Liao 已提交
141
if $data02 != 104 then
S
slguan 已提交
142 143
  return -1
endi
H
Haojun Liao 已提交
144 145
if $data03 != NULL then
  print ==6== expect: NULL, actually: $data03
S
slguan 已提交
146 147 148 149
  return -1
endi

sql create table st5 using mt2 tags ('NULL', '123aBc', 105, NULL)
H
Haojun Liao 已提交
150 151
sql select tag1,tag2,tag3,tag5 from st5
if $rows != 1 then
S
slguan 已提交
152 153
  return -1
endi
H
Haojun Liao 已提交
154
if $data00 != NULL then
S
slguan 已提交
155 156
  return -1
endi
H
Haojun Liao 已提交
157
if $data01 != 123aBc then
S
slguan 已提交
158 159
  return -1
endi
H
Haojun Liao 已提交
160
if $data02 != 105 then
S
slguan 已提交
161 162
  return -1
endi
H
Haojun Liao 已提交
163
if $data03 != NULL then
S
slguan 已提交
164 165 166 167 168 169 170
  return -1
endi



#### case 2: dynamic create table using super table when insert into
sql create table mt3 (ts timestamp, col1 int, col3 float, col5 binary(8), col6 bool, col9 nchar(8)) tags (tag1 binary(8), tag2 nchar(8), tag3 int, tag5 bool)
171
sql_error insert into st31 using mt3 tags (NULL, 'NULL', 102, 'true')     values (now+1s, 31, 31, 'bin_31', '123', 'nchar_31')
S
slguan 已提交
172
sql_error insert into st32 using mt3 tags (NULL, 'ABC', 103, 'FALSE')     values (now+2s, 32, 32.12345, 'bin_32', 'abc', 'nchar_32')
173
sql_error insert into st33 using mt3 tags ('NULL', '123aBc', 104, 'NULL') values (now+3s, 33, 33, 'bin_33', 'false123', 'nchar_33')
S
slguan 已提交
174 175 176 177 178 179
sql_error insert into st34 using mt3 tags ('NULL', '123aBc', 105, NULL)   values (now+4s, 34, 34.12345, 'bin_34', 'true123', 'nchar_34')


#### case 3: set tag value
sql create table mt4 (ts timestamp, c1 int) tags (tag_binary binary(16), tag_nchar nchar(16), tag_int int, tag_bool bool, tag_float float, tag_double double)
sql create table st41 using mt4 tags ("beijing", 'nchar_tag', 100, false, 9.12345, 7.123456789)
H
Haojun Liao 已提交
180
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from st41
H
Haojun Liao 已提交
181
if $rows != 1 then
S
slguan 已提交
182 183
  return -1
endi
H
Haojun Liao 已提交
184
if $data00 != beijing then
S
slguan 已提交
185 186
  return -1
endi
H
Haojun Liao 已提交
187
if $data01 != nchar_tag then
S
slguan 已提交
188 189
  return -1
endi
H
Haojun Liao 已提交
190
if $data02 != 100 then
S
slguan 已提交
191 192
  return -1
endi
H
Haojun Liao 已提交
193
if $data03 != 0 then
S
slguan 已提交
194 195
  return -1
endi
H
Haojun Liao 已提交
196 197 198

if $data04 != 9.12345 then
  print expect 9.12345 , actual: $data04
S
slguan 已提交
199 200
  return -1
endi
H
Haojun Liao 已提交
201 202 203

if $data05 != 7.123456789 then
  print expect 7.123456789 , actual: $data05
S
slguan 已提交
204 205
  return -1
endi
H
Haojun Liao 已提交
206

S
slguan 已提交
207 208
################# binary
sql alter table st41 set tag tag_binary = "shanghai"
H
Haojun Liao 已提交
209 210
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data00 != shanghai then
S
slguan 已提交
211 212
  return -1
endi
H
Haojun Liao 已提交
213

S
slguan 已提交
214
##### test 'space' case
215
system_content echo '   ' | sed 's/ //g' | tr -d '\n' # Construct an empty result for later result checking
S
slguan 已提交
216
sql alter table st41 set tag tag_binary = ""
H
Haojun Liao 已提交
217
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
218 219
if $data00 != $system_content  then
  print expect [ $system_content ], actual [ $data00 ]
H
Haojun Liao 已提交
220 221 222
  return -1
endi

223
sql alter table st41 set tag tag_binary = "NULL"
H
Haojun Liao 已提交
224 225
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data00 != NULL then
S
slguan 已提交
226 227
  return -1
endi
H
Haojun Liao 已提交
228

S
slguan 已提交
229
sql alter table st41 set tag tag_binary = NULL
H
Haojun Liao 已提交
230 231
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data00 != NULL then
S
slguan 已提交
232 233 234 235 236 237
  print ==8== expect: NULL, actually: $data23
  return -1
endi

################### nchar
sql alter table st41 set tag tag_nchar = "��˼����"
H
Haojun Liao 已提交
238
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
S
slguan 已提交
239
#sleep 1000
H
Haojun Liao 已提交
240 241
#if $data01 != ��˼���� then
#  print ==== expect ��˼����, actually $data01
S
slguan 已提交
242 243 244 245 246 247
#  return -1
#endi
##### test 'space' case
#$tagvalue = '
#$tagvalue = $tagvalue '
sql alter table st41 set tag tag_nchar = ''
H
Haojun Liao 已提交
248 249
#sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
#if $data01 != $tagvalue then
S
slguan 已提交
250 251
#  return -1
#endi
252
sql alter table st41 set tag tag_nchar = "NULL"
H
Haojun Liao 已提交
253 254
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data01 != NULL then
S
slguan 已提交
255 256 257
  return -1
endi
sql alter table st41 set tag tag_nchar = NULL
H
Haojun Liao 已提交
258 259 260
#sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
#if $data01 !=   then
#  print ==9== expect  , actually $data01
S
slguan 已提交
261 262 263 264 265
#   return -1
#endi

################### int
sql alter table st41 set tag tag_int = -2147483647
H
Haojun Liao 已提交
266 267
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != -2147483647 then
S
slguan 已提交
268 269 270
  return -1
endi
sql alter table st41 set tag tag_int = 2147483647
H
Haojun Liao 已提交
271 272
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != 2147483647 then
S
slguan 已提交
273 274 275 276 277 278 279
  return -1
endi

sql_error alter table st41 set tag tag_int = -2147483648
sql_error alter table st41 set tag tag_int = 2147483648

sql alter table st41 set tag tag_int = '-379'
H
Haojun Liao 已提交
280 281
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != -379 then
S
slguan 已提交
282 283 284
  return -1
endi
sql alter table st41 set tag tag_int = -2000
H
Haojun Liao 已提交
285 286
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != -2000 then
S
slguan 已提交
287 288
  return -1
endi
289
sql alter table st41 set tag tag_int = NULL
H
Haojun Liao 已提交
290 291 292
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != NULL then
  print ==10== expect: NULL, actually: $data02
S
slguan 已提交
293 294
  return -1
endi
295
sql alter table st41 set tag tag_int = 'NULL'
S
slguan 已提交
296 297 298 299 300
sql_error alter table st41 set tag tag_int = ''
sql_error alter table st41 set tag tag_int = abc379

################### bool
sql alter table st41 set tag tag_bool = 'true'
H
Haojun Liao 已提交
301 302
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != 1 then
S
slguan 已提交
303 304 305
  return -1
endi
sql alter table st41 set tag tag_bool = 'false'
H
Haojun Liao 已提交
306 307
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != 0 then
S
slguan 已提交
308 309 310
  return -1
endi
sql alter table st41 set tag tag_bool = 0
H
Haojun Liao 已提交
311 312
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != 0 then
S
slguan 已提交
313 314 315
  return -1
endi
sql alter table st41 set tag tag_bool = 123
H
Haojun Liao 已提交
316 317
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != 1 then
S
slguan 已提交
318 319
  return -1
endi
320
sql alter table st41 set tag tag_bool = 'NULL'
H
Haojun Liao 已提交
321 322 323
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != NULL then
  print ==14== expect: NULL, actually: $data03
S
slguan 已提交
324 325
  return -1
endi
326
sql alter table st41 set tag tag_bool = NULL
H
Haojun Liao 已提交
327 328
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != NULL then
S
slguan 已提交
329 330 331 332 333 334 335 336 337
  return -1
endi

sql_error alter table st41 set tag tag_bool = '123'
sql_error alter table st41 set tag tag_bool = ''
sql_error alter table st41 set tag tag_bool = abc379

################### float
sql alter table st41 set tag tag_float = -32
H
Haojun Liao 已提交
338 339 340
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data04 != -32.00000 then
  print expect -32.00000 actual $data04
S
slguan 已提交
341 342 343
  return -1
endi
sql alter table st41 set tag tag_float = 54.123456
H
Haojun Liao 已提交
344 345 346
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data04 != 54.123455 then
  print ==15== expect: 54.123455, actually: $data04
S
slguan 已提交
347 348 349
#  return -1
endi
sql alter table st41 set tag tag_float = 54.12345
H
Haojun Liao 已提交
350 351 352
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data04 != 54.12345 then
  print ==16== expect: 54.12345, actually: $data04
S
slguan 已提交
353 354 355
  return -1
endi
sql alter table st41 set tag tag_float = 54.12345678
H
Haojun Liao 已提交
356 357 358
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data04 != 54.12346 then
  print ==11== expect: 54.12346, actually : $data04
S
slguan 已提交
359 360
  return -1
endi
361
sql alter table st41 set tag tag_float = NULL
H
Haojun Liao 已提交
362 363 364
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data04 != NULL then
  print ==12== expect: NULL, actually : $data04
S
slguan 已提交
365 366
  return -1
endi
367
sql alter table st41 set tag tag_float = 'NULL'
H
Haojun Liao 已提交
368 369 370
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data04 != NULL then
  print ==17== expect: NULL, actually : $data04
S
slguan 已提交
371 372 373
  return -1
endi
sql alter table st41 set tag tag_float = '54.123456'
H
Haojun Liao 已提交
374 375 376
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data04 != 54.12346 then
  print ==18== expect: 54.12346, actually : $data04
S
slguan 已提交
377 378 379
  return -1
endi
sql alter table st41 set tag tag_float = '-54.123456'
H
Haojun Liao 已提交
380 381 382
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data04 != -54.12346 then
  print ==19== expect: -54.12346, actually : $data04
S
slguan 已提交
383 384 385 386 387 388 389 390 391 392
  return -1
endi
sql_error alter table st41 set tag tag_float = ''

sql_error alter table st41 set tag tag_float = 'abc'
sql_error alter table st41 set tag tag_float = '123abc'
sql_error alter table st41 set tag tag_float = abc

################### double
sql alter table st41 set tag tag_double = -92
H
Haojun Liao 已提交
393 394 395
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data05 != -92.000000000 then
  print expect -92.000000000 actual $data05
S
slguan 已提交
396 397 398
  return -1
endi
sql alter table st41 set tag tag_double = 184
H
Haojun Liao 已提交
399 400 401
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data05 != 184.000000000 then
  print expect 184.000000000 actual $data05
S
slguan 已提交
402 403 404
  return -1
endi
sql alter table st41 set tag tag_double = '-2456'
H
Haojun Liao 已提交
405 406
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data05 != -2456.000000000 then
S
slguan 已提交
407 408
  return -1
endi
409
sql alter table st41 set tag tag_double = NULL
H
Haojun Liao 已提交
410 411 412
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data05 != NULL then
  print ==13== expect: NULL, actually : $data05
S
slguan 已提交
413 414
  return -1
endi
415
sql alter table st41 set tag tag_double = 'NULL'
H
Haojun Liao 已提交
416 417 418
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data05 != NULL then
  print ==20== expect: NULL, actually : $data05
S
slguan 已提交
419 420 421 422 423 424 425 426 427 428 429 430 431 432
  return -1
endi
sql_error alter table st41 set tag tag_double = ''


sql_error alter table st41 set tag tag_double = 'abc'
sql_error alter table st41 set tag tag_double = '123abc' 
sql_error alter table st41 set tag tag_double = abc

################### bigint smallint tinyint
sql create table mt5 (ts timestamp, c1 int) tags (tag_bigint bigint, tag_smallint smallint, tag_tinyint tinyint)
sql create table st51 using mt5 tags (1, 2, 3)
sql alter table st51 set tag tag_bigint = '-379'
sql alter table st51 set tag tag_bigint = -2000
433
sql alter table st51 set tag tag_bigint = NULL
S
slguan 已提交
434
sql alter table st51 set tag tag_bigint = 9223372036854775807
H
Haojun Liao 已提交
435 436
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data00 != 9223372036854775807 then
S
slguan 已提交
437 438 439
  return -1
endi
sql alter table st51 set tag tag_bigint = 9223372036854775808
H
Haojun Liao 已提交
440 441
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data00 != 9223372036854775807 then
S
slguan 已提交
442 443 444
  return -1
endi
sql alter table st51 set tag tag_bigint = -9223372036854775807
H
Haojun Liao 已提交
445 446
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data00 != -9223372036854775807 then
S
slguan 已提交
447 448 449 450
  return -1
endi
sql_error alter table st51 set tag tag_bigint = -9223372036854775808

451
sql alter table st51 set tag tag_bigint = 'NULL'
S
slguan 已提交
452 453 454 455 456
sql_error alter table st51 set tag tag_bigint = ''
sql_error alter table st51 set tag tag_bigint = abc379

####
sql alter table st51 set tag tag_smallint = -2000
457
sql alter table st51 set tag tag_smallint = NULL
S
slguan 已提交
458
sql alter table st51 set tag tag_smallint = 32767
H
Haojun Liao 已提交
459 460
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data01 != 32767 then
S
slguan 已提交
461 462 463 464 465
  return -1
endi
sql_error alter table st51 set tag tag_smallint = 32768

sql alter table st51 set tag tag_smallint = -32767
H
Haojun Liao 已提交
466 467
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data01 != -32767 then
S
slguan 已提交
468 469 470 471
  return -1
endi
sql_error alter table st51 set tag tag_smallint = -32768

472
sql alter table st51 set tag tag_smallint = 'NULL'
S
slguan 已提交
473 474 475 476 477
sql_error alter table st51 set tag tag_smallint = ''
sql_error alter table st51 set tag tag_smallint = abc379

####
sql alter table st51 set tag tag_tinyint = -127
478
sql alter table st51 set tag tag_tinyint = NULL
S
slguan 已提交
479
sql alter table st51 set tag tag_tinyint = 127
H
Haojun Liao 已提交
480 481
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data02 != 127 then
S
slguan 已提交
482 483 484
  return -1
endi
sql alter table st51 set tag tag_tinyint = -127
H
Haojun Liao 已提交
485 486
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data02 != -127 then
S
slguan 已提交
487 488 489 490
  return -1
endi
sql_error alter table st51 set tag tag_tinyint = '-128'
sql_error alter table st51 set tag tag_tinyint = 128
491
sql alter table st51 set tag tag_tinyint = 'NULL'
S
slguan 已提交
492 493 494 495 496 497 498 499
sql_error alter table st51 set tag tag_tinyint = ''
sql_error alter table st51 set tag tag_tinyint = abc379


# test end   
#sql drop database $db


500
system sh/exec.sh -n dnode1 -s stop -x SIGINT