null_char.sim 15.4 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
5
system sh/cfg.sh -n dnode1 -c walLevel -v 1
S
slguan 已提交
6 7
system sh/exec.sh -n dnode1 -s start

H
Haojun Liao 已提交
8
sleep 100
S
slguan 已提交
9 10
sql connect

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

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

18
#### case 0: field NULL, or 'NULL'
S
slguan 已提交
19
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)
20
sql create table st1 using mt1 tags (NULL, 'NULL', 100, 1000, 'false', 9.123)
S
slguan 已提交
21 22
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')
23 24
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 已提交
25 26 27 28 29

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

58
if $data31 != NULL then
S
slguan 已提交
59 60
  return -1
endi
61
if $data32 != NULL then
S
slguan 已提交
62 63 64 65 66 67 68 69 70 71
  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
72
if $data35 != NULL then
S
slguan 已提交
73 74
  return -1
endi
75
if $data36 != NULL then
S
slguan 已提交
76 77
  return -1
endi
78
if $data39 != NULL then
S
slguan 已提交
79 80 81 82
  return -1
endi


83
#### case 1: tag NULL, or 'NULL'
S
slguan 已提交
84
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)
85
sql create table st2 using mt2 tags (NULL, 'NULL', 102, 'true')
H
Haojun Liao 已提交
86 87
sql select tag1, tag2, tag3, tag5 from st2
if $rows != 1 then
S
slguan 已提交
88 89
  return -1
endi
H
Haojun Liao 已提交
90 91
if $data00 != NULL then
  print ==1== expect: NULL, actually: $data00
S
slguan 已提交
92 93
  return -1
endi
H
Haojun Liao 已提交
94 95
if $data01 != NULL then
  print ==2== expect: NULL, actually: $data01
S
slguan 已提交
96 97
  return -1
endi
H
Haojun Liao 已提交
98 99
if $data02 != 102 then
  print ==3== expect: NULL, actually: $data02
S
slguan 已提交
100 101
  return -1
endi
H
Haojun Liao 已提交
102 103
if $data03 != 1 then
  print ==4== expect: 1, actually: $data03
S
slguan 已提交
104 105 106
  return -1
endi

107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
sql select tag1 from st2 limit 20 offset 1
if $rows != 0 then
  return -1
endi

sql select tag1 from st2 limit 10 offset 2
if $rows != 0 then
  return -1
endi

sql select tag1 from st2 limit 0 offset 0
if $rows != 0 then
  return -1
endi

S
slguan 已提交
122
sql create table st3 using mt2 tags (NULL, 'ABC', 103, 'FALSE')
H
Haojun Liao 已提交
123 124
sql select tag1, tag2, tag3, tag5 from st3
if $rows != 1 then
S
slguan 已提交
125 126
  return -1
endi
H
Haojun Liao 已提交
127 128
if $data00 != NULL then
  print ==5== expect: NULL, actually: $data00
S
slguan 已提交
129 130
  return -1
endi
H
Haojun Liao 已提交
131
if $data01 != ABC then
S
slguan 已提交
132 133
  return -1
endi
H
Haojun Liao 已提交
134
if $data02 != 103 then
S
slguan 已提交
135 136
  return -1
endi
H
Haojun Liao 已提交
137
if $data03 != 0 then
S
slguan 已提交
138 139 140 141 142 143
  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')
144
sql create table st4 using mt2 tags ('NULL', '123aBc', 104, 'NULL')
H
Haojun Liao 已提交
145 146
sql select tag1,tag2,tag3,tag5 from st4
if $rows != 1 then
S
slguan 已提交
147 148
  return -1
endi
H
Haojun Liao 已提交
149
if $data00 != NULL then
S
slguan 已提交
150 151
  return -1
endi
H
Haojun Liao 已提交
152
if $data01 != 123aBc then
S
slguan 已提交
153 154
  return -1
endi
H
Haojun Liao 已提交
155
if $data02 != 104 then
S
slguan 已提交
156 157
  return -1
endi
H
Haojun Liao 已提交
158 159
if $data03 != NULL then
  print ==6== expect: NULL, actually: $data03
S
slguan 已提交
160 161 162 163
  return -1
endi

sql create table st5 using mt2 tags ('NULL', '123aBc', 105, NULL)
H
Haojun Liao 已提交
164 165
sql select tag1,tag2,tag3,tag5 from st5
if $rows != 1 then
S
slguan 已提交
166 167
  return -1
endi
H
Haojun Liao 已提交
168
if $data00 != NULL then
S
slguan 已提交
169 170
  return -1
endi
H
Haojun Liao 已提交
171
if $data01 != 123aBc then
S
slguan 已提交
172 173
  return -1
endi
H
Haojun Liao 已提交
174
if $data02 != 105 then
S
slguan 已提交
175 176
  return -1
endi
H
Haojun Liao 已提交
177
if $data03 != NULL then
S
slguan 已提交
178 179 180 181 182 183 184
  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)
185
sql_error insert into st31 using mt3 tags (NULL, 'NULL', 102, 'true')     values (now+1s, 31, 31, 'bin_31', '123', 'nchar_31')
S
slguan 已提交
186
sql_error insert into st32 using mt3 tags (NULL, 'ABC', 103, 'FALSE')     values (now+2s, 32, 32.12345, 'bin_32', 'abc', 'nchar_32')
187
sql_error insert into st33 using mt3 tags ('NULL', '123aBc', 104, 'NULL') values (now+3s, 33, 33, 'bin_33', 'false123', 'nchar_33')
S
slguan 已提交
188 189 190 191 192 193
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 已提交
194
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from st41
H
Haojun Liao 已提交
195
if $rows != 1 then
S
slguan 已提交
196 197
  return -1
endi
H
Haojun Liao 已提交
198
if $data00 != beijing then
S
slguan 已提交
199 200
  return -1
endi
H
Haojun Liao 已提交
201
if $data01 != nchar_tag then
S
slguan 已提交
202 203
  return -1
endi
H
Haojun Liao 已提交
204
if $data02 != 100 then
S
slguan 已提交
205 206
  return -1
endi
H
Haojun Liao 已提交
207
if $data03 != 0 then
S
slguan 已提交
208 209
  return -1
endi
H
Haojun Liao 已提交
210 211 212

if $data04 != 9.12345 then
  print expect 9.12345 , actual: $data04
S
slguan 已提交
213 214
  return -1
endi
H
Haojun Liao 已提交
215 216 217

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

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

S
slguan 已提交
228
##### test 'space' case
229
system_content echo '   ' | sed 's/ //g' | tr -d '\n' # Construct an empty result for later result checking
S
slguan 已提交
230
sql alter table st41 set tag tag_binary = ""
H
Haojun Liao 已提交
231
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
232 233
if $data00 != $system_content  then
  print expect [ $system_content ], actual [ $data00 ]
H
Haojun Liao 已提交
234 235 236
  return -1
endi

237
sql alter table st41 set tag tag_binary = "NULL"
H
Haojun Liao 已提交
238 239
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data00 != NULL then
S
slguan 已提交
240 241
  return -1
endi
H
Haojun Liao 已提交
242

S
slguan 已提交
243
sql alter table st41 set tag tag_binary = NULL
H
Haojun Liao 已提交
244 245
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data00 != NULL then
S
slguan 已提交
246 247 248 249 250 251
  print ==8== expect: NULL, actually: $data23
  return -1
endi

################### nchar
sql alter table st41 set tag tag_nchar = "��˼����"
H
Haojun Liao 已提交
252
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
H
Haojun Liao 已提交
253
#sleep 100
H
Haojun Liao 已提交
254 255
#if $data01 != ��˼���� then
#  print ==== expect ��˼����, actually $data01
S
slguan 已提交
256 257 258 259 260 261
#  return -1
#endi
##### test 'space' case
#$tagvalue = '
#$tagvalue = $tagvalue '
sql alter table st41 set tag tag_nchar = ''
H
Haojun Liao 已提交
262 263
#sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
#if $data01 != $tagvalue then
S
slguan 已提交
264 265
#  return -1
#endi
266
sql alter table st41 set tag tag_nchar = "NULL"
H
Haojun Liao 已提交
267 268
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data01 != NULL then
S
slguan 已提交
269 270 271
  return -1
endi
sql alter table st41 set tag tag_nchar = NULL
H
Haojun Liao 已提交
272 273 274
#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 已提交
275 276 277 278 279
#   return -1
#endi

################### int
sql alter table st41 set tag tag_int = -2147483647
H
Haojun Liao 已提交
280 281
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != -2147483647 then
S
slguan 已提交
282 283 284
  return -1
endi
sql alter table st41 set tag tag_int = 2147483647
H
Haojun Liao 已提交
285 286
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != 2147483647 then
S
slguan 已提交
287 288 289 290 291 292 293
  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 已提交
294 295
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != -379 then
S
slguan 已提交
296 297 298
  return -1
endi
sql alter table st41 set tag tag_int = -2000
H
Haojun Liao 已提交
299 300
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data02 != -2000 then
S
slguan 已提交
301 302
  return -1
endi
303
sql alter table st41 set tag tag_int = NULL
H
Haojun Liao 已提交
304 305 306
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 已提交
307 308
  return -1
endi
309
sql alter table st41 set tag tag_int = 'NULL'
S
slguan 已提交
310 311 312 313 314
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 已提交
315 316
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != 1 then
S
slguan 已提交
317 318 319
  return -1
endi
sql alter table st41 set tag tag_bool = 'false'
H
Haojun Liao 已提交
320 321
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != 0 then
S
slguan 已提交
322 323 324
  return -1
endi
sql alter table st41 set tag tag_bool = 0
H
Haojun Liao 已提交
325 326
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != 0 then
S
slguan 已提交
327 328 329
  return -1
endi
sql alter table st41 set tag tag_bool = 123
H
Haojun Liao 已提交
330 331
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != 1 then
S
slguan 已提交
332 333
  return -1
endi
334
sql alter table st41 set tag tag_bool = 'NULL'
H
Haojun Liao 已提交
335 336 337
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 已提交
338 339
  return -1
endi
340
sql alter table st41 set tag tag_bool = NULL
H
Haojun Liao 已提交
341 342
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data03 != NULL then
S
slguan 已提交
343 344 345 346 347 348 349 350 351
  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 已提交
352 353 354
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 已提交
355 356 357
  return -1
endi
sql alter table st41 set tag tag_float = 54.123456
H
Haojun Liao 已提交
358 359 360
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 已提交
361 362 363
#  return -1
endi
sql alter table st41 set tag tag_float = 54.12345
H
Haojun Liao 已提交
364 365 366
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 已提交
367 368 369
  return -1
endi
sql alter table st41 set tag tag_float = 54.12345678
H
Haojun Liao 已提交
370 371 372
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 已提交
373 374
  return -1
endi
375
sql alter table st41 set tag tag_float = NULL
H
Haojun Liao 已提交
376 377 378
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 已提交
379 380
  return -1
endi
381
sql alter table st41 set tag tag_float = 'NULL'
H
Haojun Liao 已提交
382 383 384
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 已提交
385 386 387
  return -1
endi
sql alter table st41 set tag tag_float = '54.123456'
H
Haojun Liao 已提交
388 389 390
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 已提交
391 392 393
  return -1
endi
sql alter table st41 set tag tag_float = '-54.123456'
H
Haojun Liao 已提交
394 395 396
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 已提交
397 398 399 400 401 402 403 404 405 406
  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 已提交
407 408 409
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 已提交
410 411 412
  return -1
endi
sql alter table st41 set tag tag_double = 184
H
Haojun Liao 已提交
413 414 415
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 已提交
416 417 418
  return -1
endi
sql alter table st41 set tag tag_double = '-2456'
H
Haojun Liao 已提交
419 420
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from  st41
if $data05 != -2456.000000000 then
S
slguan 已提交
421 422
  return -1
endi
423
sql alter table st41 set tag tag_double = NULL
H
Haojun Liao 已提交
424 425 426
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 已提交
427 428
  return -1
endi
429
sql alter table st41 set tag tag_double = 'NULL'
H
Haojun Liao 已提交
430 431 432
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 已提交
433 434 435 436 437 438 439 440 441 442 443 444 445 446
  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
447
sql alter table st51 set tag tag_bigint = NULL
S
slguan 已提交
448
sql alter table st51 set tag tag_bigint = 9223372036854775807
H
Haojun Liao 已提交
449 450
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data00 != 9223372036854775807 then
S
slguan 已提交
451 452
  return -1
endi
453 454
sql_error alter table st51 set tag tag_bigint = 9223372036854775808

S
slguan 已提交
455
sql alter table st51 set tag tag_bigint = -9223372036854775807
H
Haojun Liao 已提交
456 457
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data00 != -9223372036854775807 then
S
slguan 已提交
458 459 460 461
  return -1
endi
sql_error alter table st51 set tag tag_bigint = -9223372036854775808

462
sql alter table st51 set tag tag_bigint = 'NULL'
S
slguan 已提交
463 464 465 466 467
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
468
sql alter table st51 set tag tag_smallint = NULL
S
slguan 已提交
469
sql alter table st51 set tag tag_smallint = 32767
H
Haojun Liao 已提交
470 471
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data01 != 32767 then
S
slguan 已提交
472 473 474 475 476
  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 已提交
477 478
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data01 != -32767 then
S
slguan 已提交
479 480 481 482
  return -1
endi
sql_error alter table st51 set tag tag_smallint = -32768

483
sql alter table st51 set tag tag_smallint = 'NULL'
S
slguan 已提交
484 485 486 487 488
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
489
sql alter table st51 set tag tag_tinyint = NULL
S
slguan 已提交
490
sql alter table st51 set tag tag_tinyint = 127
H
Haojun Liao 已提交
491 492
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data02 != 127 then
S
slguan 已提交
493 494 495
  return -1
endi
sql alter table st51 set tag tag_tinyint = -127
H
Haojun Liao 已提交
496 497
sql select tag_bigint, tag_smallint, tag_tinyint from st51
if $data02 != -127 then
S
slguan 已提交
498 499 500 501
  return -1
endi
sql_error alter table st51 set tag tag_tinyint = '-128'
sql_error alter table st51 set tag tag_tinyint = 128
502
sql alter table st51 set tag tag_tinyint = 'NULL'
S
slguan 已提交
503 504 505 506 507 508 509 510
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


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