enh: shielding database option 'strict'
This commit is contained in:
parent
b69725adaa
commit
9dff4371ec
|
@ -69,7 +69,7 @@ endi
|
||||||
if $data4_db != 3 then # replica
|
if $data4_db != 3 then # replica
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data5_db != off then # strict
|
if $data5_db != on then # strict
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data6_db != 345600m then # duration
|
if $data6_db != 345600m then # duration
|
||||||
|
|
|
@ -89,7 +89,7 @@ if $data4_db != 1 then # replica
|
||||||
print expect 1, actual: $data4_db
|
print expect 1, actual: $data4_db
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data5_db != off then # strict
|
if $data5_db != on then # strict
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data6_db != 14400m then # duration
|
if $data6_db != 14400m then # duration
|
||||||
|
|
|
@ -219,7 +219,7 @@ sql drop database test;
|
||||||
|
|
||||||
print ========== interval\session\state window
|
print ========== interval\session\state window
|
||||||
|
|
||||||
sql CREATE DATABASE test1 BUFFER 96 CACHESIZE 1 CACHEMODEL 'none' COMP 2 DURATION 14400m WAL_FSYNC_PERIOD 3000 MAXROWS 4096 MINROWS 100 KEEP 5256000m,5256000m,5256000m PAGES 256 PAGESIZE 4 PRECISION 'ms' REPLICA 1 STRICT 'off' WAL_LEVEL 1 VGROUPS 2 SINGLE_STABLE 0;
|
sql CREATE DATABASE test1 BUFFER 96 CACHESIZE 1 CACHEMODEL 'none' COMP 2 DURATION 14400m WAL_FSYNC_PERIOD 3000 MAXROWS 4096 MINROWS 100 KEEP 5256000m,5256000m,5256000m PAGES 256 PAGESIZE 4 PRECISION 'ms' REPLICA 1 WAL_LEVEL 1 VGROUPS 2 SINGLE_STABLE 0;
|
||||||
sql use test1;
|
sql use test1;
|
||||||
sql CREATE STABLE st (time TIMESTAMP, ca DOUBLE, cb DOUBLE, cc int) TAGS (ta VARCHAR(10) );
|
sql CREATE STABLE st (time TIMESTAMP, ca DOUBLE, cb DOUBLE, cc int) TAGS (ta VARCHAR(10) );
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ class TDTestCase:
|
||||||
tdSql.execute(f'create table ct{i+1} using stb1 tags ( {i+1} )')
|
tdSql.execute(f'create table ct{i+1} using stb1 tags ( {i+1} )')
|
||||||
|
|
||||||
tdSql.query('select * from information_schema.ins_databases;')
|
tdSql.query('select * from information_schema.ins_databases;')
|
||||||
tdSql.checkData(2,5,'off')
|
tdSql.checkData(2,5,'on')
|
||||||
tdSql.error("alter database db strict 'off'")
|
tdSql.error("alter database db strict 'off'")
|
||||||
# tdSql.execute('alter database db strict 'on'')
|
# tdSql.execute('alter database db strict 'on'')
|
||||||
# tdSql.query('select * from information_schema.ins_databases;')
|
# tdSql.query('select * from information_schema.ins_databases;')
|
||||||
|
|
Loading…
Reference in New Issue