wecisecode il y a 5 jours
Parent
commit
cba854225d

+ 18 - 0
odbctest/mql/basic/01clear/1_delete_all_test_data.mql

@@ -757,6 +757,24 @@ onerror(continue,`not exist`,`not find`,`not found`)
 **/
 ;
 
+delete 性能备份AaB from /test/性能AaB_CC with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
+delete 性能AaB from /test/性能AaB_CC with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
+delete from /test/性能AaB_CC with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
 delete 性能备份AaB from /test/性能AaB_Local with version
 /**
 onerror(continue,`not exist`,`not find`,`not found`)

+ 6 - 0
odbctest/mql/basic/01clear/2_drop_all_test_class.mql

@@ -123,5 +123,11 @@ drop class if exists /test/abc ;
 
 drop class if exists /test/foo ;
 
+drop class if exists /test/性能AaB ;
+drop class if exists /test/性能AaB_CC ;
+drop class if exists /test/性能AaB_Cache ;
+drop class if exists /test/性能AaB_MemDB ;
+drop class if exists /test/性能AaB_Local ;
+
 drop class if exists /test/ ;
 

+ 98 - 0
odbctest/mql/problem/basic/10index/88_drop.mql

@@ -0,0 +1,98 @@
+
+delete 性能备份AaB from /test/性能AaB_CC with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
+delete 性能AaB from /test/性能AaB_CC with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
+delete from /test/性能AaB_CC with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;
+
+drop class if exists /test/性能AaB_CC;
+
+create class if not exists /test/性能AaB_CC (
+    主机AaB					varchar,
+	v_date					date,
+	v_timestamp				timestamp,
+	性能备份AaB					bucket 		{
+            "dict": true,
+            "slot": 5,
+            "ttl": 2,
+            "type": "promdb",
+            "version": 1
+    },
+    noindex				varchar,
+    性能AaB				bucket 		{
+            "dict": true,
+            "slot": 5,
+            "ttl": 2,
+            "type": "promdb",
+            "version": 1
+    },
+    keys(主机AaB),
+    indexes(主机AaB )
+)with core=cassandra, autosearch=true , version=false , key=manu, alias='性能测试' , nickname='性能AaB_CC'
+;
+
+insert into /test/性能AaB_CC	 (id,主机AaB,v_date,v_timestamp) values ('性能AaB_CC:test',"服务器1","2026-04-02","2026-04-02 15:55:55");
+insert into /test/性能AaB_CC	 (id,主机AaB,v_date,v_timestamp) values ('性能AaB_CC:test2',"服务器2","1754-08-31","1754-08-31 15:55:55");
+
+create ("性能AaB_CC:test")-[:connect]->("性能AaB_CC:test2")
+/**
+output()
+**/
+;
+
+select count(*) from /test/性能AaB_CC where 主机AaB='服务器1'
+/**
+output()
+count(1)
+**/
+;
+
+cql: select * from field where namespace='test' and name in ('主机aab','noindex')
+/**
+match("name", "主机aab", "isindex", 1)
+match("name", "noindex", "isindex", 0)
+**/
+;
+
+select * from /test/性能AaB_CC where v_date between 1774972800000 and 1776182400000 limit 10
+/**
+output()
+count(1)
+**/
+;
+
+select "hello".id from /test/性能AaB_CC "hello" where v_date between 1774972800000 and 1776182400000 order by "hello".v_date limit 10
+/**
+output()
+count(1)
+**/
+;
+
+select * from /test/性能AaB_CC where v_timestamp between 1774972800000 and 1776182400000 limit 10
+/**
+output()
+count(1)
+**/
+;
+
+alter class /test/性能AaB_CC with core=cacheonly
+;
+
+select * from /test/性能AaB_CC
+/**
+output()
+count(0)
+**/
+;