describe.sim 799 字节
Newer Older
S
slguan 已提交
1
system sh/stop_dnodes.sh
S
slguan 已提交
2
system sh/deploy.sh -n dnode1 -i 1
3
system sh/cfg.sh -n dnode1 -c walLevel -v 1
S
slguan 已提交
4 5
system sh/exec.sh -n dnode1 -s start

H
Haojun Liao 已提交
6
sleep 2000
S
slguan 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
sql connect

$i = 0
$dbPrefix = de_in_db
$tbPrefix = de_in_tb
$db = $dbPrefix . $i
$tb = $tbPrefix . $i

print =============== step1
sql create database $db
sql use $db
sql create table $tb (ts timestamp, speed int)

sql describe $tb
if $rows != 2 then 
  return -1
endi
if $data00 != ts then 
  return -1
endi
if $data01 != TIMESTAMP then 
  return -1
endi
if $data02 != 8 then 
  return -1
endi
if $data10 != speed then 
  return -1
endi
if $data11 != INT then 
  return -1
endi
if $data12 != 4 then 
  return -1
endi

sql drop database $db
sql show databases
if $rows != 0 then 
  return -1
endi
S
scripts  
slguan 已提交
48 49
 
system sh/exec.sh -n dnode1 -s stop -x SIGINT