提交 63ccb3fa 编写于 作者: D dapan1121

restore case

上级 57c298b4
...@@ -7,7 +7,7 @@ sleep 100 ...@@ -7,7 +7,7 @@ sleep 100
sql connect sql connect
print ========== db name and table name check in create and drop, describe print ========== db name and table name check in create and drop, describe
sql create database abc keep 36500,36500,36500 sql create database abc keep 36500
sql create database 'abc123' sql create database 'abc123'
sql create database '_ab1234' sql create database '_ab1234'
sql create database 'ABC123' sql create database 'ABC123'
......
...@@ -86,7 +86,7 @@ sleep 100 ...@@ -86,7 +86,7 @@ sleep 100
run general/parser/first_last_query.sim run general/parser/first_last_query.sim
print =================> insert data regression test print =================> insert data regression test
sql create database test keep 36500,36500,36500 sql create database test keep 36500
sql use test sql use test
sql create table tm0 (ts timestamp, k int) sql create table tm0 (ts timestamp, k int)
......
...@@ -21,7 +21,7 @@ $db = $dbPrefix . $i ...@@ -21,7 +21,7 @@ $db = $dbPrefix . $i
$mt = $mtPrefix . $i $mt = $mtPrefix . $i
sql drop database if exists $db sql drop database if exists $db
sql create database $db keep 36500,36500,36500 sql create database $db keep 36500
sql use $db sql use $db
print =====================================> td-4481 print =====================================> td-4481
......
...@@ -29,7 +29,7 @@ $tstart = 100000 ...@@ -29,7 +29,7 @@ $tstart = 100000
sql drop database if exists $db -x step1 sql drop database if exists $db -x step1
step1: step1:
sql create database if not exists $db keep 36500,36500,36500 sql create database if not exists $db keep 36500
sql use $db sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12)) sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
......
...@@ -26,7 +26,7 @@ $tstart = 100000 ...@@ -26,7 +26,7 @@ $tstart = 100000
sql drop database if exists $db -x step1 sql drop database if exists $db -x step1
step1: step1:
sql create database if not exists $db keep 36500,36500,36500 sql create database if not exists $db keep 36500
sql use $db sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12)) sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
......
...@@ -24,7 +24,7 @@ $tstart = 100000 ...@@ -24,7 +24,7 @@ $tstart = 100000
sql drop database if exists $db -x step1 sql drop database if exists $db -x step1
step1: step1:
sql create database if not exists $db keep 36500,36500,36500 sql create database if not exists $db keep 36500
sql use $db sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12)) sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
......
...@@ -24,7 +24,7 @@ $tstart = 100000 ...@@ -24,7 +24,7 @@ $tstart = 100000
sql drop database if exists $db -x step1 sql drop database if exists $db -x step1
step1: step1:
sql create database if not exists $db keep 36500,36500,36500 sql create database if not exists $db keep 36500
sql use $db sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12)) sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
......
...@@ -23,7 +23,7 @@ $tstart = 100000 ...@@ -23,7 +23,7 @@ $tstart = 100000
sql drop database if exists $db -x step1 sql drop database if exists $db -x step1
step1: step1:
sql create database if not exists $db keep 36500,36500,36500 sql create database if not exists $db keep 36500
sql use $db sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12)) sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
......
...@@ -24,7 +24,7 @@ $tstart = 100000 ...@@ -24,7 +24,7 @@ $tstart = 100000
sql drop database if exists $db -x step1 sql drop database if exists $db -x step1
step1: step1:
sql create database if not exists $db keep 36500,36500,36500 sql create database if not exists $db keep 36500
sql use $db sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12), t3 int) sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12), t3 int)
......
...@@ -29,7 +29,7 @@ $mt = $mtPrefix . $i ...@@ -29,7 +29,7 @@ $mt = $mtPrefix . $i
sql drop database if exists $db -x step1 sql drop database if exists $db -x step1
step1: step1:
sql create database if not exists $db keep 36500,36500,36500 sql create database if not exists $db keep 36500
sql use $db sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12)) sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
......
...@@ -26,7 +26,7 @@ $stb = $stbPrefix . $i ...@@ -26,7 +26,7 @@ $stb = $stbPrefix . $i
sql drop database $db -x step1 sql drop database $db -x step1
step1: step1:
sql create database $db cache 16 maxrows 4096 keep 36500,36500,36500 sql create database $db cache 16 maxrows 4096 keep 36500
print ====== create tables print ====== create tables
sql use $db sql use $db
sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 smallint, c6 tinyint, c7 bool, c8 binary(10), c9 nchar(10)) tags(t1 int) sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 smallint, c6 tinyint, c7 bool, c8 binary(10), c9 nchar(10)) tags(t1 int)
......
...@@ -25,7 +25,7 @@ $stb = $stbPrefix . $i ...@@ -25,7 +25,7 @@ $stb = $stbPrefix . $i
sql drop database $db -x step1 sql drop database $db -x step1
step1: step1:
sql create database $db cache 16 maxrows 4096 keep 36500,36500,36500 sql create database $db cache 16 maxrows 4096 keep 36500
print ====== create tables print ====== create tables
sql use $db sql use $db
sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 smallint, c6 tinyint, c7 bool, c8 binary(10), c9 nchar(10)) tags(t1 int) sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 smallint, c6 tinyint, c7 bool, c8 binary(10), c9 nchar(10)) tags(t1 int)
...@@ -175,7 +175,7 @@ if $data21 != 2.10000 then ...@@ -175,7 +175,7 @@ if $data21 != 2.10000 then
endi endi
print =====================td-1302 case print =====================td-1302 case
sql create database t1 keep 36500,36500,36500; sql create database t1 keep 36500
sql use t1; sql use t1;
sql create table test(ts timestamp, k int); sql create table test(ts timestamp, k int);
sql insert into test values(29999, 1)(70000, 2)(80000, 3) sql insert into test values(29999, 1)(70000, 2)(80000, 3)
...@@ -194,7 +194,7 @@ if $rows != 3 then ...@@ -194,7 +194,7 @@ if $rows != 3 then
endi endi
print ==============>td-1308 print ==============>td-1308
sql create database db keep 36500,36500,36500; sql create database db keep 36500
sql use db; sql use db;
sql create table stb (ts timestamp, c1 int, c2 binary(10)) tags(t1 binary(10)); sql create table stb (ts timestamp, c1 int, c2 binary(10)) tags(t1 binary(10));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册