wecisecode 1 week geleden
bovenliggende
commit
d3f955b7e5

+ 3 - 0
odbctest/mql/aaa/10class/00init.mql

@@ -2,3 +2,6 @@
 
 create class if not exists /test() with namespace="test"
 ;
+
+create class if not exists /test/aaa()
+;

+ 3 - 3
odbctest/mql/aaa/10class/10create.mql

@@ -25,7 +25,7 @@ create class if not exists /test/aaa/test_class (
     keys(name)
 )
 /**
-schema(/test/aaa/test_class)
+schema('/test/aaa/test_class')
 **/
 ;
 
@@ -81,7 +81,7 @@ create class if not exists /test/aaa/test_class_key (
     data    text,
 
     keys(id, name)
-) with key=name
+) with nickname='test_class_key'
 ;
 
 -- 8. 创建带 partition 的 class
@@ -92,7 +92,7 @@ create class if not exists /test/aaa/test_class_partition (
 
     indexes(id, name, val),
     keys(id, name)
-) with partition=id
+) with partition=id, nickname='test_class_partition'
 ;
 
 -- 9. 创建带 cache=all 的 class

+ 10 - 3
odbctest/mql/aaa/10class/12drop.mql

@@ -8,7 +8,7 @@ create class if not exists /test/aaa/test_drop (
     value   int,
 
     keys(name)
-)
+) with nickname='test_drop'
 ;
 
 -- 2. drop class 前插入数据验证
@@ -21,7 +21,13 @@ output()
 **/
 ;
 
+-- 3. 删除数据后 drop class
+delete from /test/aaa/test_drop with version
+/**
+onerror(continue,'not exist','not find','not found')
+**/
+;
+
 drop class if exists /test/aaa/test_drop
 ;
 
@@ -54,13 +60,13 @@ drop class if exists /test/aaa/test_drop_alias
 create class if not exists /test/aaa/test_batch_drop_1 (
     id int,
     keys(id)
-)
+) with nickname='test_batch_drop_1'
 ;
 
 create class if not exists /test/aaa/test_batch_drop_2 (
     id int,
     keys(id)
-)
+) with nickname='test_batch_drop_2'
 ;
 
 drop class if exists /test/aaa/test_batch_drop_1

+ 1 - 1
odbctest/mql/aaa/11data_crud/00init.mql

@@ -22,5 +22,5 @@ create class if not exists /test/aaa/test_basic_ver (
     name    varchar,
     value   int,
     keys(name)
-) with version=true
+) with version=true, nickname='test_basic_ver'
 ;

+ 0 - 2
odbctest/mql/aaa/11data_crud/11insert.mql

@@ -7,7 +7,6 @@ insert into /test/aaa/test_basic (name, v_text, v_int, v_bigint, v_float, v_doub
 values ('insert_001', 'hello world 测试数据', 100, 1234567890123456789, 3.14, 3.141592653589793, true, 1711641600000, 'hello')
 /**
 output()
-count(1)
 **/
 ;
 
@@ -16,7 +15,6 @@ insert into /test/aaa/test_basic (name, v_text, v_int, v_float, v_double, v_bool
 values ('insert_002', 'boolean false test', -50, -1.5, 0.0001, false)
 /**
 output()
-count(1)
 **/
 ;
 

+ 1 - 1
odbctest/mql/aaa/14bucket/00init.mql

@@ -22,7 +22,7 @@ create class if not exists /test/aaa/test_bucket_tsdb (
     ts      timestamp,
 
     keys(name)
-) with bucket=tsdb
+) with bucket=tsdb, nickname='test_bucket_tsdb'
 ;
 
 create class if not exists /test/aaa/test_bucket_promdb (