lizg 2 недель назад
Родитель
Сommit
db35fc387b

+ 1 - 1
odbctest/mql/problem/basic/36prepare/10class.mql

@@ -17,6 +17,6 @@ create class if not exists /test/prepare (
 	)
 ;
 
-
 delete from /test/prepare with version
 ;
+

+ 1 - 1
odbctest/mql/problem/basic/36prepare/12valid.mql

@@ -10,7 +10,7 @@ select _group from /test/prepare where v_varchar=='*abc*'
 count(1)
 matchcount(_group, {
   "_all": [
-    "aaa"
+    "aa"
   ]
 }, 1)
 **/

+ 21 - 0
odbctest/mql/problem/basic/36prepare/20class.mql

@@ -0,0 +1,21 @@
+
+create class if not exists /test/mprepare (
+		
+		v_varchar		varchar,
+		v_text			text,
+		v_int			int,
+		v_bigint		bigint,
+		v_smalldouble	double,
+		v_double		double,
+		v_float			float,
+		v_bool			bool,
+		v_timestamp		timestamp,
+		v_blob			blob,
+		
+		indexes(v_varchar, v_text, v_int, v_bigint, v_double, v_float, v_smalldouble, v_bool, v_timestamp),
+		keys(v_varchar, v_text)
+	) with partition=(v_int)
+;
+
+delete from /test/mprepare with mversion
+;

Разница между файлами не показана из-за своего большого размера
+ 310 - 0
odbctest/mql/problem/basic/36prepare/21data.mql


+ 18 - 0
odbctest/mql/problem/basic/36prepare/22valid.mql

@@ -0,0 +1,18 @@
+
+select * from /test/mprepare
+/**
+matchcount(v_varchar, "*abc*", v_text, `hello word 2003 123-456-789 中华人民共和国是中国的唯一合法政府,台湾是中国一部分。  Mercury, Venus2,Earch%。Mars$Uranus CeresAndJupiterOrSaturn #Neptune Pluto_Charon"\""`, 1)
+**/
+;
+
+select _group from /test/mprepare where v_varchar=='*abc*'
+/**
+count(1)
+matchcount(_group, {
+  "_all": [
+    "aa"
+  ]
+}, 1)
+**/
+;
+