columnValue_bool.sim 17.6 KB
Newer Older
H
Haojun Liao 已提交
1
sleep 500
S
slguan 已提交
2 3 4 5 6 7 8 9 10 11 12
sql connect
sql create database if not exists db
sql use db

#### test the value of all data types in four cases: static create table, insert column value, synamic create table, alter tag value

######## case 0: bool
print ========== bool 
sql create table mt_bool (ts timestamp, c bool) tags (tagname bool)

## case 00: static create table for test tag values
13
sql create table st_bool_0  using mt_bool tags (NULL)
H
hjxilinx 已提交
14
sql select tagname from st_bool_0
H
hjxilinx 已提交
15 16
if $data00 != NULL then
  print ==1== expect: NULL, actually: $data00
S
slguan 已提交
17 18 19
  return -1
endi
sql create table st_bool_1  using mt_bool tags (NULL)
H
hjxilinx 已提交
20
sql select tagname from st_bool_1
H
hjxilinx 已提交
21 22
if $data00 != NULL then
  print ==2== expect: NULL, actually: $data00
S
slguan 已提交
23 24
  return -1
endi
25
sql create table st_bool_2  using mt_bool tags ('NULL')
H
hjxilinx 已提交
26
sql select tagname from st_bool_2
H
hjxilinx 已提交
27 28
if $data00 != NULL then
  print ==3== expect: NULL, actually: $data00
S
slguan 已提交
29 30 31
  return -1
endi
sql create table st_bool_3  using mt_bool tags ('NULL')
H
hjxilinx 已提交
32
sql select tagname from st_bool_3
H
hjxilinx 已提交
33 34
if $data00 != NULL then
  print ==4== expect: NULL, actually: $data00
S
slguan 已提交
35 36
  return -1
endi
37
sql create table st_bool_4  using mt_bool tags ("NULL")
H
hjxilinx 已提交
38
sql select tagname from st_bool_4
H
hjxilinx 已提交
39 40
if $data00 != NULL then
  print ==5== expect: NULL, actually: $data00
S
slguan 已提交
41 42 43
  return -1
endi
sql create table st_bool_5  using mt_bool tags ("NULL")
H
hjxilinx 已提交
44
sql select tagname from st_bool_5
H
hjxilinx 已提交
45 46
if $data00 != NULL then
  print ==6== expect: NULL, actually: $data00
S
slguan 已提交
47 48 49
  return -1
endi
sql create table st_bool_6  using mt_bool tags ("true")
H
hjxilinx 已提交
50
sql select tagname from st_bool_6
H
hjxilinx 已提交
51 52
if $data00 != 1 then
  print ==7== expect: 1, actually: $data00
S
slguan 已提交
53 54 55
  return -1
endi
sql create table st_bool_7  using mt_bool tags ('true')
H
hjxilinx 已提交
56
sql select tagname from st_bool_7
H
hjxilinx 已提交
57 58
if $data00 != 1 then
  print ==8== expect: 1, actually: $data00
S
slguan 已提交
59 60 61
  return -1
endi
sql create table st_bool_8  using mt_bool tags (true)
H
hjxilinx 已提交
62
sql select tagname from st_bool_8
H
hjxilinx 已提交
63 64
if $data00 != 1 then
  print ==9== expect: 1, actually: $data00
S
slguan 已提交
65 66 67
  return -1
endi
sql create table st_bool_9  using mt_bool tags ("false")
H
hjxilinx 已提交
68
sql select tagname from st_bool_9
H
hjxilinx 已提交
69 70
if $data00 != 0 then
  print ==10== expect: 0, actually: $data00
S
slguan 已提交
71 72 73
  return -1
endi
sql create table st_bool_10 using mt_bool tags ('false')
H
hjxilinx 已提交
74
sql select tagname from st_bool_10
H
hjxilinx 已提交
75 76
if $data00 != 0 then
  print ==11== expect: 0, actually: $data00
S
slguan 已提交
77 78 79
  return -1
endi
sql create table st_bool_11 using mt_bool tags (false)
H
hjxilinx 已提交
80
sql select tagname from st_bool_11
H
hjxilinx 已提交
81 82
if $data00 != 0 then
  print ==12== expect: 0, actually: $data00
S
slguan 已提交
83 84 85
  return -1
endi
sql create table st_bool_12 using mt_bool tags (0)
H
hjxilinx 已提交
86
sql select tagname from st_bool_12
H
hjxilinx 已提交
87 88
if $data00 != 0 then
  print ==13== expect: 0, actually: $data00
S
slguan 已提交
89 90 91
  return -1
endi
sql create table st_bool_13 using mt_bool tags (1)
H
hjxilinx 已提交
92
sql select tagname from st_bool_13
H
hjxilinx 已提交
93 94
if $data00 != 1 then
  print ==14== expect: 1, actually: $data00
S
slguan 已提交
95 96 97
  return -1
endi
sql create table st_bool_14 using mt_bool tags (6.9)
H
hjxilinx 已提交
98
sql select tagname from st_bool_14
H
hjxilinx 已提交
99 100
if $data00 != 1 then
  print ==15== expect: 1, actually: $data00
S
slguan 已提交
101 102 103
  return -1
endi
sql create table st_bool_15 using mt_bool tags (-3)
H
hjxilinx 已提交
104
sql select tagname from st_bool_15
H
hjxilinx 已提交
105 106
if $data00 != 1 then
  print ==16== expect: 1, actually: $data00
S
slguan 已提交
107 108 109
  return -1
endi
sql create table st_bool_15_0 using mt_bool tags (+300)
H
hjxilinx 已提交
110
sql select tagname from st_bool_15_0
H
hjxilinx 已提交
111 112
if $data00 != 1 then
  print ==16== expect: 1, actually: $data00
S
slguan 已提交
113 114 115
  return -1
endi
sql create table st_bool_15_1 using mt_bool tags (-8.03)
H
hjxilinx 已提交
116
sql select tagname from st_bool_15_1
H
hjxilinx 已提交
117 118
if $data00 != 1 then
  print ==16== expect: 1, actually: $data00
S
slguan 已提交
119 120 121 122
  return -1
endi

## case 01: insert values  for test column values
123
sql insert into st_bool_0  values (now, NULL)
S
slguan 已提交
124 125 126 127
sql select * from st_bool_0
if $rows != 1 then
  return -1
endi
H
hjxilinx 已提交
128
if $data01 != NULL then
S
slguan 已提交
129 130 131 132 133 134 135 136
  print ==17== expect: NULL, actually: $data01
  return -1
endi 
sql insert into st_bool_1  values (now, NULL)
sql select * from st_bool_1
if $rows != 1 then
  return -1
endi
H
hjxilinx 已提交
137
if $data01 != NULL then
S
slguan 已提交
138 139 140
  print ==18== expect: NULL, actually: $data01
  return -1
endi  
141
sql insert into st_bool_2  values (now, 'NULL')
S
slguan 已提交
142 143 144 145
sql select * from st_bool_2
if $rows != 1 then
  return -1
endi
H
hjxilinx 已提交
146
if $data01 != NULL then
S
slguan 已提交
147 148 149 150 151 152 153 154
  print ==19== expect: NULL, actually: $data01
  return -1
endi
sql insert into st_bool_3  values (now, 'NULL')
sql select * from st_bool_3
if $rows != 1 then
  return -1
endi
H
hjxilinx 已提交
155
if $data01 != NULL then
S
slguan 已提交
156 157 158
  print ==20== expect: NULL, actually: $data01
  return -1
endi
159
sql insert into st_bool_4  values (now, "NULL")
S
slguan 已提交
160 161 162 163
sql select * from st_bool_4
if $rows != 1 then
  return -1
endi
H
hjxilinx 已提交
164
if $data01 != NULL then
S
slguan 已提交
165 166 167 168 169 170 171 172
  print ==21== expect: NULL, actually: $data01
  return -1
endi
sql insert into st_bool_5  values (now, "NULL")
sql select * from st_bool_5
if $rows != 1 then
  return -1
endi
H
hjxilinx 已提交
173
if $data01 != NULL then
S
slguan 已提交
174 175 176 177 178 179 180 181 182
  print ==22== expect: NULL, actually: $data01
  return -1
endi
sql insert into st_bool_6  values (now, "true")
sql select * from st_bool_6
if $rows != 1 then
  return -1
endi
if $data01 != 1 then
H
hjxilinx 已提交
183
  print ==23== expect: 1, actually: $data01
S
slguan 已提交
184 185 186 187 188 189 190 191
  return -1
endi 
sql insert into st_bool_7  values (now, 'true')
sql select * from st_bool_7
if $rows != 1 then
  return -1
endi
if $data01 != 1 then
H
hjxilinx 已提交
192
  print ==24== expect: 1, actually: $data01
S
slguan 已提交
193 194 195 196 197 198 199 200
  return -1
endi  
sql insert into st_bool_8  values (now, true) 
sql select * from st_bool_8
if $rows != 1 then
  return -1
endi
if $data01 != 1 then
H
hjxilinx 已提交
201
  print ==25== expect: 1, actually: $data01
S
slguan 已提交
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
  return -1
endi   
sql insert into st_bool_9  values (now, "false")
sql select * from st_bool_9
if $rows != 1 then
  return -1
endi
if $data01 != 0 then
  print ==26== expect: false, actually: $data01
  return -1
endi 
sql insert into st_bool_10 values (now, 'false')
sql select * from st_bool_10
if $rows != 1 then
  return -1
endi
if $data01 != 0 then
  print ==27== expect: false, actually: $data01
  return -1
endi 
sql insert into st_bool_11 values (now, false)  
sql select * from st_bool_11
if $rows != 1 then
  return -1
endi
if $data01 != 0 then
  print ==28== expect: false, actually: $data01
  return -1
endi 
sql insert into st_bool_12 values (now, 0)
sql select * from st_bool_12
if $rows != 1 then
  return -1
endi
if $data01 != 0 then
  print ==29== expect: false, actually: $data01
  return -1
endi       
sql insert into st_bool_13 values (now, 1)
sql select * from st_bool_13
if $rows != 1 then
  return -1
endi
if $data01 != 1 then
H
hjxilinx 已提交
246
  print ==30== expect: 1, actually: $data01
S
slguan 已提交
247 248 249 250 251 252 253 254
  return -1
endi       
sql insert into st_bool_14 values (now, 6.9)
sql select * from st_bool_14
if $rows != 1 then
  return -1
endi
if $data01 != 1 then
H
hjxilinx 已提交
255
  print ==31== expect: 1, actually: $data01
S
slguan 已提交
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
  return -1
endi     
sql insert into st_bool_15 values (now, -3) 
sql select * from st_bool_15
if $rows != 1 then
  return -1
endi
if $data01 != 1 then
  print ==32== expect: true, actually: $data01
  return -1
endi     
sql insert into st_bool_15_0 values (now, +300) 
sql select * from st_bool_15_0
if $rows != 1 then
  return -1
endi
if $data01 != 1 then
  print ==32== expect: true, actually: $data01
  return -1
endi  
sql insert into st_bool_15_1 values (now, -3.15) 
sql select * from st_bool_15_1
if $rows != 1 then
  return -1
endi
if $data01 != 1 then
  print ==32== expect: true, actually: $data01
  return -1
endi 

## case 02: dynamic create table for test tag values
287
sql insert into st_bool_16 using mt_bool tags (NULL)   values (now, NULL)
H
hjxilinx 已提交
288
sql select tagname from st_bool_16
H
hjxilinx 已提交
289 290
if $data00 != NULL then
  print ==33== expect: NULL, actually: $data00
S
slguan 已提交
291 292 293
  return -1
endi
sql select * from st_bool_16
H
hjxilinx 已提交
294
if $data01 != NULL then
S
slguan 已提交
295 296 297 298 299
  print ==34== expect: NULL, actually: $data01
  return -1
endi
    
sql insert into st_bool_17 using mt_bool tags (NULL)   values (now, NULL)
H
hjxilinx 已提交
300
sql select tagname from st_bool_17
H
hjxilinx 已提交
301 302
if $data00 != NULL then
  print ==35== expect: NULL, actually: $data00
S
slguan 已提交
303 304 305
  return -1
endi
sql select * from st_bool_17
H
hjxilinx 已提交
306
if $data01 != NULL then
S
slguan 已提交
307 308 309
  print ==36== expect: NULL, actually: $data01
  return -1
endi  
310
sql insert into st_bool_18 using mt_bool tags ('NULL') values (now, 'NULL')
H
hjxilinx 已提交
311
sql select tagname from st_bool_18
H
hjxilinx 已提交
312 313
if $data00 != NULL then
  print ==37== expect: NULL, actually: $data00
S
slguan 已提交
314 315 316
  return -1
endi
sql select * from st_bool_18
H
hjxilinx 已提交
317
if $data01 != NULL then
S
slguan 已提交
318 319 320 321
  print ==38== expect: NULL, actually: $data01
  return -1
endi
sql insert into st_bool_19 using mt_bool tags ('NULL') values (now, 'NULL')
H
hjxilinx 已提交
322
sql select tagname from st_bool_19
H
hjxilinx 已提交
323 324
if $data00 != NULL then
  print ==39== expect: NULL, actually: $data00
S
slguan 已提交
325 326 327
  return -1
endi
sql select * from st_bool_19
H
hjxilinx 已提交
328
if $data01 != NULL then
S
slguan 已提交
329 330 331
  print ==40== expect: NULL, actually: $data01
  return -1
endi
332
sql insert into st_bool_20 using mt_bool tags ("NULL") values (now, "NULL")
H
hjxilinx 已提交
333
sql select tagname from st_bool_20
H
hjxilinx 已提交
334 335
if $data00 != NULL then
  print ==41== expect: NULL, actually: $data00
S
slguan 已提交
336 337 338
  return -1
endi
sql select * from st_bool_20
H
hjxilinx 已提交
339
if $data01 != NULL then
S
slguan 已提交
340 341 342 343
  print ==42== expect: NULL, actually: $data01
  return -1
endi
sql insert into st_bool_21 using mt_bool tags ("NULL") values (now, "NULL")
H
hjxilinx 已提交
344
sql select tagname from st_bool_21
H
hjxilinx 已提交
345 346
if $data00 != NULL then
  print ==43== expect: NULL, actually: $data00
S
slguan 已提交
347 348 349
  return -1
endi
sql select * from st_bool_21
H
hjxilinx 已提交
350
if $data01 != NULL then
S
slguan 已提交
351 352 353 354
  print ==44== expect: NULL, actually: $data01
  return -1
endi
sql insert into st_bool_22 using mt_bool tags ("true")  values (now, "true")
H
hjxilinx 已提交
355
sql select tagname from st_bool_22
H
hjxilinx 已提交
356 357
if $data00 != 1 then
  print ==45== expect: 1, actually: $data00
S
slguan 已提交
358 359 360 361
  return -1
endi
sql select * from st_bool_22
if $data01 != 1 then
H
hjxilinx 已提交
362
  print ==46== expect: 1, actually: $data01
S
slguan 已提交
363 364 365
  return -1
endi 
sql insert into st_bool_23 using mt_bool tags ('true')  values (now, 'true')
H
hjxilinx 已提交
366
sql select tagname from st_bool_23
H
hjxilinx 已提交
367 368
if $data00 != 1 then
  print ==47== expect: 1, actually: $data00
S
slguan 已提交
369 370 371 372
  return -1
endi
sql select * from st_bool_23
if $data01 != 1 then
H
hjxilinx 已提交
373
  print ==48== expect: 1, actually: $data01
S
slguan 已提交
374 375 376
  return -1
endi  
sql insert into st_bool_24 using mt_bool tags (true)    values (now, true)
H
hjxilinx 已提交
377
sql select tagname from st_bool_24
H
hjxilinx 已提交
378 379
if $data00 != 1 then
  print ==49== expect: 1, actually: $data00
S
slguan 已提交
380 381 382 383
  return -1
endi
sql select * from st_bool_24
if $data01 != 1 then
H
hjxilinx 已提交
384
  print ==50== expect: 1, actually: $data01
S
slguan 已提交
385 386 387
  return -1
endi    
sql insert into st_bool_25 using mt_bool tags ("false") values (now, "false")
H
hjxilinx 已提交
388
sql select tagname from st_bool_25
H
hjxilinx 已提交
389 390
if $data00 != 0 then
  print ==51== expect: 0, actually: $data00
S
slguan 已提交
391 392 393 394
  return -1
endi
sql select * from st_bool_25
if $data01 != 0 then
H
hjxilinx 已提交
395
  print ==52== expect: 0, actually: $data01
S
slguan 已提交
396 397 398
  return -1
endi 
sql insert into st_bool_26 using mt_bool tags ('false') values (now, 'false')
H
hjxilinx 已提交
399
sql select tagname from st_bool_26
H
hjxilinx 已提交
400 401
if $data00 != 0 then
  print ==53== expect: 0, actually: $data00
S
slguan 已提交
402 403 404 405
  return -1
endi
sql select * from st_bool_26
if $data01 != 0 then
H
hjxilinx 已提交
406
  print ==54== expect: 0, actually: $data01
S
slguan 已提交
407 408 409
  return -1
endi 
sql insert into st_bool_27 using mt_bool tags (false)   values (now, false)
H
hjxilinx 已提交
410
sql select tagname from st_bool_27
H
hjxilinx 已提交
411 412
if $data00 != 0 then
  print ==55== expect: 0, actually: $data00
S
slguan 已提交
413 414 415 416
  return -1
endi
sql select * from st_bool_27
if $data01 != 0 then
H
hjxilinx 已提交
417
  print ==56== expect: 0, actually: $data01
S
slguan 已提交
418 419 420
  return -1
endi   
sql insert into st_bool_28 using mt_bool tags (0)       values (now, 0)
H
hjxilinx 已提交
421
sql select tagname from st_bool_28
H
hjxilinx 已提交
422 423
if $data00 != 0 then
  print ==57== expect: 0, actually: $data00
S
slguan 已提交
424 425 426 427
  return -1
endi
sql select * from st_bool_28
if $data01 != 0 then
H
hjxilinx 已提交
428
  print ==58== expect: 0, actually: $data01
S
slguan 已提交
429 430 431
  return -1
endi       
sql insert into st_bool_29 using mt_bool tags (1)       values (now, 1) 
H
hjxilinx 已提交
432
sql select tagname from st_bool_29
H
hjxilinx 已提交
433 434
if $data00 != 1 then
  print ==59== expect: 1, actually: $data00
S
slguan 已提交
435 436 437 438
  return -1
endi
sql select * from st_bool_29
if $data01 != 1 then
H
hjxilinx 已提交
439
  print ==60== expect: 1, actually: $data01
S
slguan 已提交
440 441 442
  return -1
endi         
sql insert into st_bool_30 using mt_bool tags (6.9)     values (now, 6.9)
H
hjxilinx 已提交
443
sql select tagname from st_bool_30
H
hjxilinx 已提交
444 445
if $data00 != 1 then
  print ==61== expect: 1, actually: $data00
S
slguan 已提交
446 447 448 449
  return -1
endi
sql select * from st_bool_30
if $data01 != 1 then
H
hjxilinx 已提交
450
  print ==62== expect: 1, actually: $data01
S
slguan 已提交
451 452 453
  return -1
endi        
sql insert into st_bool_31 using mt_bool tags (-3)      values (now, -3)
H
hjxilinx 已提交
454
sql select tagname from st_bool_31
H
hjxilinx 已提交
455 456
if $data00 != 1 then
  print ==63== expect: 1, actually: $data00
S
slguan 已提交
457 458 459 460
  return -1
endi
sql select * from st_bool_31
if $data01 != 1 then
H
hjxilinx 已提交
461
  print ==64== expect: 1, actually: $data01
S
slguan 已提交
462 463 464
  return -1
endi         
sql insert into st_bool_32 using mt_bool tags (+300)      values (now, +300)
H
hjxilinx 已提交
465
sql select tagname from st_bool_32
H
hjxilinx 已提交
466 467
if $data00 != 1 then
  print ==63== expect: 1, actually: $data00
S
slguan 已提交
468 469 470 471
  return -1
endi
sql select * from st_bool_32
if $data01 != 1 then
H
hjxilinx 已提交
472
  print ==64== expect: 1, actually: $data01
S
slguan 已提交
473 474 475
  return -1
endi    
sql insert into st_bool_33 using mt_bool tags (+30.890)      values (now, +30.890)
H
hjxilinx 已提交
476
sql select tagname from st_bool_33
H
hjxilinx 已提交
477 478
if $data00 != 1 then
  print ==63== expect: 1, actually: $data00
S
slguan 已提交
479 480 481 482
  return -1
endi
sql select * from st_bool_33
if $data01 != 1 then
H
hjxilinx 已提交
483
  print ==64== expect: 1, actually: $data01
S
slguan 已提交
484 485 486 487 488 489 490 491 492
  return -1
endi   






## case 03: alter tag values
H
hjxilinx 已提交
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
#sql alter table st_bool_0 set tag tagname=true
#sql select tagname from st_bool_0
#if $data00 != true then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname=NULL
#sql select tagname from st_bool_0
#if $data00 != NULL then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname=false
#sql select tagname from st_bool_0
#if $data00 != false then
#  return -1
#endi
508
#sql alter table st_bool_0 set tag tagname=NULL
H
hjxilinx 已提交
509 510 511 512 513 514 515 516 517
#sql select tagname from st_bool_0
#if $data00 != NULL then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname='true'
#sql select tagname from st_bool_0
#if $data00 != true then
#  return -1
#endi
518
#sql alter table st_bool_0 set tag tagname='NULL'
H
hjxilinx 已提交
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
#sql select tagname from st_bool_0
#if $data00 != NULL then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname='false'
#sql select tagname from st_bool_0
#if $data00 != false then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname='NULL'
#sql select tagname from st_bool_0
#if $data00 != NULL then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname="true"
#sql select tagname from st_bool_0
#if $data00 != true then
#  return -1
#endi
538
#sql alter table st_bool_0 set tag tagname="NULL"
H
hjxilinx 已提交
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572
#sql select tagname from st_bool_0
#if $data00 != NULL then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname="false"
#sql select tagname from st_bool_0
#if $data00 != false then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname="NULL"
#sql select tagname from st_bool_0
#if $data00 != NULL then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname=1
#sql select tagname from st_bool_0
#if $data00 != true then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname=0
#sql select tagname from st_bool_0
#if $data00 != false then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname=6.9
#sql select tagname from st_bool_0
#if $data00 != true then
#  return -1
#endi
#sql alter table st_bool_0 set tag tagname=-3
#sql select tagname from st_bool_0
#if $data00 != true then
#  return -1
#endi
S
slguan 已提交
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630

# case 04: illegal input
sql_error create table st_bool_e0 using mt_bool tags (123abc)
sql_error create table st_bool_e1 using mt_bool tags ("123abc")
sql_error create table st_bool_e2 using mt_bool tags ("123")
sql_error create table st_bool_e3 using mt_bool tags (abc)
sql_error create table st_bool_e4 using mt_bool tags ("abc")
sql_error create table st_bool_e5 using mt_bool tags (" ")
sql_error create table st_bool_e6 using mt_bool tags ('')

sql create table st_bool_e0 using mt_bool tags (true)
sql create table st_bool_e1 using mt_bool tags (true)
sql create table st_bool_e2 using mt_bool tags (true)
sql create table st_bool_e3 using mt_bool tags (true)
sql create table st_bool_e4 using mt_bool tags (true)
sql create table st_bool_e5 using mt_bool tags (true)
sql create table st_bool_e6 using mt_bool tags (true)

sql_error insert into st_bool_e0 values (now, 123abc)
sql_error insert into st_bool_e1 values (now, "123abc")
sql_error insert into st_bool_e2 values (now, "123")
sql_error insert into st_bool_e3 values (now, abc)
sql_error insert into st_bool_e4 values (now, "abc")
sql_error insert into st_bool_e5 values (now, " ")
sql_error insert into st_bool_e6 values (now, '')

sql_error insert into st_bool_e10 using mt_bool tags (123abc)   values (now, 1)
sql_error insert into st_bool_e11 using mt_bool tags ("123abc") values (now, 1)
sql_error insert into st_bool_e12 using mt_bool tags ("123")    values (now, 1)
sql_error insert into st_bool_e13 using mt_bool tags (abc)      values (now, 1)
sql_error insert into st_bool_e14 using mt_bool tags ("abc")    values (now, 1)
sql_error insert into st_bool_e15 using mt_bool tags (" ")      values (now, 1)
sql_error insert into st_bool_e16 using mt_bool tags ('')       values (now, 1)

sql_error insert into st_bool_e17 using mt_bool tags (1) values (now, 123abc)  
sql_error insert into st_bool_e18 using mt_bool tags (1) values (now, "123abc")
sql_error insert into st_bool_e19 using mt_bool tags (1) values (now, "123")   
sql_error insert into st_bool_e20 using mt_bool tags (1) values (now, abc)     
sql_error insert into st_bool_e21 using mt_bool tags (1) values (now, "abc")   
sql_error insert into st_bool_e22 using mt_bool tags (1) values (now, " ")     
sql_error insert into st_bool_e23 using mt_bool tags (1) values (now, '')      

sql insert into st_bool_e10 using mt_bool tags (1) values (now, 1)
sql insert into st_bool_e11 using mt_bool tags (1) values (now, 1)
sql insert into st_bool_e12 using mt_bool tags (1) values (now, 1)
sql insert into st_bool_e13 using mt_bool tags (1) values (now, 1)
sql insert into st_bool_e14 using mt_bool tags (1) values (now, 1)
sql insert into st_bool_e15 using mt_bool tags (1) values (now, 1)
sql insert into st_bool_e16 using mt_bool tags (1) values (now, 1)

sql_error alter table st_bool_e10 set tag tagname=123abc  
sql_error alter table st_bool_e11 set tag tagname="123abc"
sql_error alter table st_bool_e12 set tag tagname="123"  
sql_error alter table st_bool_e13 set tag tagname=abc     
sql_error alter table st_bool_e14 set tag tagname="abc"   
sql_error alter table st_bool_e15 set tag tagname=" "     
sql_error alter table st_bool_e16 set tag tagname=''