diff --git a/src/sql/parser/ob_parser.cpp b/src/sql/parser/ob_parser.cpp index 1d834709eb9d05f5d56b0279f069be4ae641e417..4cc3ac861945a4a909de33dccfeec42fce0f9a51 100644 --- a/src/sql/parser/ob_parser.cpp +++ b/src/sql/parser/ob_parser.cpp @@ -984,7 +984,11 @@ int ObParser::parse(const ObString &query, parse_result.is_not_utf8_connection_ = ObCharset::is_valid_collation(connection_collation_) ? (ObCharset::charset_type_by_coll(connection_collation_) != CHARSET_UTF8MB4) : false; parse_result.malloc_pool_ = allocator_; - parse_result.sql_mode_ = sql_mode_; + if (lib::is_oracle_mode()) { + parse_result.sql_mode_ = sql_mode_ | SMO_ORACLE; + } else { + parse_result.sql_mode_ = sql_mode_ & (~SMO_ORACLE); + } parse_result.need_parameterize_ = (FP_MODE == parse_mode || FP_PARAMERIZE_AND_FILTER_HINT_MODE == parse_mode); parse_result.minus_ctx_.pos_ = -1; diff --git a/src/sql/parser/sql_parser_base.c b/src/sql/parser/sql_parser_base.c index 9ae81cb2fceaf02cc22f66ede8e0fc7c4d4b5ed0..2457642faab8823e1d175425b654879e5881bd49 100644 --- a/src/sql/parser/sql_parser_base.c +++ b/src/sql/parser/sql_parser_base.c @@ -310,4 +310,4 @@ int add_alias_name(ParseNode *node, ParseResult *result, int end) } } return ret; -} \ No newline at end of file +} diff --git a/unittest/sql/parser/print_parser_tree.result b/unittest/sql/parser/print_parser_tree.result index fe50013c7c5b30836b937e935e7bf6a8a1de7fd7..6db7e1a9c06327f9d540081dba06b11af25b5baa 100644 --- a/unittest/sql/parser/print_parser_tree.result +++ b/unittest/sql/parser/print_parser_tree.result @@ -221,43 +221,13 @@ question_mask_size: 0 |--[0],[T_HINT], str_value_=[commit work], value=[9223372036854775807] ************** Case 20 *************** -commit comment 'comment transaction commit'; -question_mask_size: 0 - -|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_COMMIT], str_value_=[], value=[0] - -************** Case 21 *************** -commit work comment 'comment txn commit work'; -question_mask_size: 0 - -|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_COMMIT], str_value_=[], value=[0] - -************** Case 22 *************** -commit/*hint+commit tx hint*/ comment 'comment + hint'; -question_mask_size: 0 - -|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_COMMIT], str_value_=[], value=[0] - |--[0],[T_HINT], str_value_=[commit tx hint], value=[9223372036854775807] - -************** Case 23 *************** -commit/*hint+commit tx work hint*/ work comment 'comment + hint'; -question_mask_size: 0 - -|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_COMMIT], str_value_=[], value=[0] - |--[0],[T_HINT], str_value_=[commit tx work hint], value=[9223372036854775807] - -************** Case 24 *************** rollback; question_mask_size: 0 |--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] |--[0],[T_ROLLBACK], str_value_=[], value=[0] -************** Case 25 *************** +************** Case 21 *************** rollback/*hint+rollback*/; question_mask_size: 0 @@ -265,14 +235,14 @@ question_mask_size: 0 |--[0],[T_ROLLBACK], str_value_=[], value=[0] |--[0],[T_HINT], str_value_=[rollback], value=[9223372036854775807] -************** Case 26 *************** +************** Case 22 *************** rollback work; question_mask_size: 0 |--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] |--[0],[T_ROLLBACK], str_value_=[], value=[0] -************** Case 27 *************** +************** Case 23 *************** rollback/*hint+rollback work*/ work; question_mask_size: 0 @@ -280,7 +250,7 @@ question_mask_size: 0 |--[0],[T_ROLLBACK], str_value_=[], value=[0] |--[0],[T_HINT], str_value_=[rollback work], value=[9223372036854775807] -************** Case 28 *************** +************** Case 24 *************** alter user 'zdy' account lock; question_mask_size: 0 @@ -291,7 +261,7 @@ question_mask_size: 0 |--[0],[T_VARCHAR], str_value_=[zdy], value=[9223372036854775807] |--[1],[T_BOOL], str_value_=[], value=[1] -************** Case 29 *************** +************** Case 25 *************** alter user 'zdy' account unlock; question_mask_size: 0 @@ -302,7 +272,7 @@ question_mask_size: 0 |--[0],[T_VARCHAR], str_value_=[zdy], value=[9223372036854775807] |--[1],[T_BOOL], str_value_=[], value=[0] -************** Case 30 *************** +************** Case 26 *************** select d.t1.c1, sum(t1.c2) from d.t1 where d.t1.c1 > 0 and c2 + d.t1.c1 = 100 group by d.t1.c2 order by t.d1.c1 desc limit 0, 1 question_mask_size: 0 @@ -361,7 +331,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[0], value=[0] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 31 *************** +************** Case 27 *************** select c1, sum(d.t1.c2) from t1 where t1.c1 > 0 and c2 + t1.c1 = 100 group by t1.c2 order by t1.c1 desc limit 0, 1 question_mask_size: 0 @@ -414,7 +384,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[0], value=[0] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 32 *************** +************** Case 28 *************** select t1.c1, sum(c2) from t1 where c1 > 0 and c2 + c1 = 100 group by c2 order by c1 desc limit 0, 1 question_mask_size: 0 @@ -462,7 +432,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[0], value=[0] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 33 *************** +************** Case 29 *************** insert into t1 values(1, 2) question_mask_size: 0 @@ -479,7 +449,7 @@ question_mask_size: 0 |--[1],[T_INT], str_value_=[2], value=[2] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 34 *************** +************** Case 30 *************** insert into t1.t1 values(1, 2) question_mask_size: 0 @@ -497,7 +467,7 @@ question_mask_size: 0 |--[1],[T_INT], str_value_=[2], value=[2] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 35 *************** +************** Case 31 *************** insert into t1(c1) values(1), (2) question_mask_size: 0 @@ -518,7 +488,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[2], value=[2] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 36 *************** +************** Case 32 *************** insert into t1(t1.c1) values(1), (2) question_mask_size: 0 @@ -540,7 +510,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[2], value=[2] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 37 *************** +************** Case 33 *************** insert into d.t1(d.t1.c1) values(1), (2) question_mask_size: 0 @@ -564,7 +534,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[2], value=[2] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 38 *************** +************** Case 34 *************** update t1 set d.t1.c2=t1.c1+1 where d.t1.c1 > 1 order by d.t1.c1 desc limit 0, 10 question_mask_size: 0 @@ -604,7 +574,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[0], value=[0] |--[1],[T_INT], str_value_=[10], value=[10] -************** Case 39 *************** +************** Case 35 *************** update d.t1 set t1.c2=d.t1c1+1 where t1.c1 > 1 order by c1 desc limit 0, 10 question_mask_size: 0 @@ -641,7 +611,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[0], value=[0] |--[1],[T_INT], str_value_=[10], value=[10] -************** Case 40 *************** +************** Case 36 *************** delete from d.t1 where d.t1.c2 > 10 order by c1 limit 0, 1 question_mask_size: 0 @@ -670,7 +640,7 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[0], value=[0] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 41 *************** +************** Case 37 *************** select t1.c1, t2.c1 from d.t1 join d.t2 on d.t1.c1=t2.c1 where t1.c1>0; question_mask_size: 0 @@ -711,7 +681,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c1], value=[9223372036854775807] |--[1],[T_INT], str_value_=[0], value=[0] -************** Case 42 *************** +************** Case 38 *************** select d.t1.c1, t2.c1 from d.t1 join t2 on t1.c1=t2.c1 where t1.c1>0; question_mask_size: 0 @@ -751,7 +721,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c1], value=[9223372036854775807] |--[1],[T_INT], str_value_=[0], value=[0] -************** Case 43 *************** +************** Case 39 *************** select d.t1.c1, t2.c1 from d.t1 join t2 on c1=c1 where t1.c1>0; question_mask_size: 0 @@ -789,7 +759,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c1], value=[9223372036854775807] |--[1],[T_INT], str_value_=[0], value=[0] -************** Case 44 *************** +************** Case 40 *************** insert into t1 value (1, 2), (3, 4) on duplicate key update d.t.c1 = t.c2 + 1, c2 = c2 + 3; question_mask_size: 0 @@ -827,7 +797,7 @@ question_mask_size: 0 |--[1],[T_INT], str_value_=[3], value=[3] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 45 *************** +************** Case 41 *************** insert into d.t1 value (1, 2), (3, 4) on duplicate key update t.c1 = t.c2 + 1, d.t.c2 = t.c2 + 3; question_mask_size: 0 @@ -868,7 +838,7 @@ question_mask_size: 0 |--[1],[T_INT], str_value_=[3], value=[3] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 46 *************** +************** Case 42 *************** create table rongxuan(c int primary key, c2 int) question_mask_size: 0 @@ -888,7 +858,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT32], str_value_=[], value=[9223090566173032447] -************** Case 47 *************** +************** Case 43 *************** create table rongxuan(rongxuan.c int primary key, c2 int) question_mask_size: 0 @@ -909,7 +879,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT32], str_value_=[], value=[9223090566173032447] -************** Case 48 *************** +************** Case 44 *************** create table rongxuan(d.rongxuan.c int primary key, c2 int) question_mask_size: 0 @@ -931,7 +901,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT32], str_value_=[], value=[9223090566173032447] -************** Case 49 *************** +************** Case 45 *************** drop table t1 question_mask_size: 0 @@ -941,7 +911,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 50 *************** +************** Case 46 *************** drop table oceanbase.t, t1 question_mask_size: 0 @@ -954,7 +924,7 @@ question_mask_size: 0 |--[1],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 51 *************** +************** Case 47 *************** alter table rongxuan add c3 int; question_mask_size: 0 @@ -970,7 +940,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c3], value=[9223372036854775807] |--[1],[T_INT32], str_value_=[], value=[9223090566173032447] -************** Case 52 *************** +************** Case 48 *************** alter table rongxuan add rongxuan.c4 int; question_mask_size: 0 @@ -987,7 +957,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c4], value=[9223372036854775807] |--[1],[T_INT32], str_value_=[], value=[9223090566173032447] -************** Case 53 *************** +************** Case 49 *************** alter table rongxuan add test.rongxuan.c5 int; question_mask_size: 0 @@ -1005,7 +975,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c5], value=[9223372036854775807] |--[1],[T_INT32], str_value_=[], value=[9223090566173032447] -************** Case 54 *************** +************** Case 50 *************** drop database rongxuan question_mask_size: 0 @@ -1013,7 +983,7 @@ question_mask_size: 0 |--[0],[T_DROP_DATABASE], str_value_=[], value=[0] |--[1],[T_IDENT], str_value_=[rongxuan], value=[9223372036854775807] -************** Case 55 *************** +************** Case 51 *************** create database rongxuan question_mask_size: 0 @@ -1021,7 +991,7 @@ question_mask_size: 0 |--[0],[T_CREATE_DATABASE], str_value_=[], value=[0] |--[1],[T_IDENT], str_value_=[rongxuan], value=[9223372036854775807] -************** Case 56 *************** +************** Case 52 *************** create database if not exists rongxuan question_mask_size: 0 @@ -1030,7 +1000,7 @@ question_mask_size: 0 |--[0],[T_IF_NOT_EXISTS], str_value_=[], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[rongxuan], value=[9223372036854775807] -************** Case 57 *************** +************** Case 53 *************** create database if not exists rongxuan default character set = 'utf8' default collate = 'default_collate' question_mask_size: 0 @@ -1042,7 +1012,7 @@ question_mask_size: 0 |--[0],[T_CHARSET], str_value_=[utf8], value=[9223372036854775807] |--[1],[T_COLLATION], str_value_=[default_collate], value=[9223372036854775807] -************** Case 58 *************** +************** Case 54 *************** select * from d.t1 PARTITION(p1, p2); question_mask_size: 0 @@ -1061,7 +1031,7 @@ question_mask_size: 0 |--[0],[T_IDENT], str_value_=[p1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[p2], value=[9223372036854775807] -************** Case 59 *************** +************** Case 55 *************** delete from d.t1 PARTITION(p0, p1); question_mask_size: 0 @@ -1078,7 +1048,7 @@ question_mask_size: 0 |--[0],[T_IDENT], str_value_=[p0], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[p1], value=[9223372036854775807] -************** Case 60 *************** +************** Case 56 *************** update d.t1 PARTITION (p2) SET id = 2 WHERE name = 'Jill'; question_mask_size: 0 @@ -1104,7 +1074,7 @@ question_mask_size: 0 |--[1],[T_VARCHAR], str_value_=[Jill], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[Jill], value=[9223372036854775807] -************** Case 61 *************** +************** Case 57 *************** INSERT INTO d.t1 PARTITION (p3, p4) VALUES (24, 'Tim', 'Greene', 3, 1), (26, 'Linda', 'Mills', 2, 1); question_mask_size: 0 @@ -1139,7 +1109,7 @@ question_mask_size: 0 |--[4],[T_INT], str_value_=[1], value=[1] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 62 *************** +************** Case 58 *************** REPLACE INTO d.t1 PARTITION (p0) VALUES (20, 'Jan', 'Jones', 3, 2); question_mask_size: 0 @@ -1165,7 +1135,7 @@ question_mask_size: 0 |--[4],[T_INT], str_value_=[2], value=[2] |--[1],[T_REPLACE], str_value_=[], value=[9223372036854775807] -************** Case 63 *************** +************** Case 59 *************** SELECT e.id, s.city, d.name FROM e JOIN stores PARTITION (p1) ON e.id=s.id JOIN departments PARTITION (p0) ON e.id=d.id; question_mask_size: 0 @@ -1219,14 +1189,14 @@ question_mask_size: 0 |--[1],[T_IDENT], str_value_=[d], value=[9223372036854775807] |--[2],[T_IDENT], str_value_=[id], value=[9223372036854775807] -************** Case 64 *************** +************** Case 60 *************** alter system report replica; question_mask_size: 0 |--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] |--[0],[T_REPORT_REPLICA], str_value_=[], value=[0] -************** Case 65 *************** +************** Case 61 *************** alter system report replica server = '127.0.0.1:80'; question_mask_size: 0 @@ -1235,7 +1205,7 @@ question_mask_size: 0 |--[0],[T_IP_PORT], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=["127.0.0.1":80], value=[9223372036854775807] -************** Case 66 *************** +************** Case 62 *************** alter system report replica zone = 'z1'; question_mask_size: 0 @@ -1244,14 +1214,14 @@ question_mask_size: 0 |--[0],[T_ZONE], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=[z1], value=[9223372036854775807] -************** Case 67 *************** +************** Case 63 *************** alter system recycle replica; question_mask_size: 0 |--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] |--[0],[T_RECYCLE_REPLICA], str_value_=[], value=[0] -************** Case 68 *************** +************** Case 64 *************** alter system recycle replica server = '127.0.0.1:80'; question_mask_size: 0 @@ -1260,7 +1230,7 @@ question_mask_size: 0 |--[0],[T_IP_PORT], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=["127.0.0.1":80], value=[9223372036854775807] -************** Case 69 *************** +************** Case 65 *************** alter system recycle replica server '127.0.0.1:80'; question_mask_size: 0 @@ -1269,7 +1239,7 @@ question_mask_size: 0 |--[0],[T_IP_PORT], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=["127.0.0.1":80], value=[9223372036854775807] -************** Case 70 *************** +************** Case 66 *************** alter system recycle replica zone = 'z1'; question_mask_size: 0 @@ -1278,7 +1248,7 @@ question_mask_size: 0 |--[0],[T_ZONE], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=[z1], value=[9223372036854775807] -************** Case 71 *************** +************** Case 67 *************** alter system recycle replica zone 'z1'; question_mask_size: 0 @@ -1287,7 +1257,7 @@ question_mask_size: 0 |--[0],[T_ZONE], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=[z1], value=[9223372036854775807] -************** Case 72 *************** +************** Case 68 *************** alter system major freeze; question_mask_size: 0 @@ -1295,7 +1265,7 @@ question_mask_size: 0 |--[0],[T_FREEZE], str_value_=[], value=[0] |--[0],[T_INT], str_value_=[], value=[1] -************** Case 73 *************** +************** Case 69 *************** alter system start merge zone = 'z1'; question_mask_size: 0 @@ -1305,7 +1275,7 @@ question_mask_size: 0 |--[1],[T_ZONE], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=[z1], value=[9223372036854775807] -************** Case 74 *************** +************** Case 70 *************** alter system suspend merge; question_mask_size: 0 @@ -1313,7 +1283,7 @@ question_mask_size: 0 |--[0],[T_MERGE_CONTROL], str_value_=[], value=[0] |--[0],[T_INT], str_value_=[], value=[2] -************** Case 75 *************** +************** Case 71 *************** alter system suspend merge tenant = all; question_mask_size: 0 @@ -1323,7 +1293,7 @@ question_mask_size: 0 |--[1],[T_TENANT_LIST], str_value_=[], value=[9223372036854775807] |--[0],[T_IDENT], str_value_=[all], value=[9223372036854775807] -************** Case 76 *************** +************** Case 72 *************** alter system resume merge; question_mask_size: 0 @@ -1331,7 +1301,7 @@ question_mask_size: 0 |--[0],[T_MERGE_CONTROL], str_value_=[], value=[0] |--[0],[T_INT], str_value_=[], value=[3] -************** Case 77 *************** +************** Case 73 *************** alter system resume merge tenant = all; question_mask_size: 0 @@ -1341,14 +1311,14 @@ question_mask_size: 0 |--[1],[T_TENANT_LIST], str_value_=[], value=[9223372036854775807] |--[0],[T_IDENT], str_value_=[all], value=[9223372036854775807] -************** Case 78 *************** +************** Case 74 *************** alter system clear roottable; question_mask_size: 0 |--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] |--[0],[T_CLEAR_ROOT_TABLE], str_value_=[], value=[0] -************** Case 79 *************** +************** Case 75 *************** alter system clear roottable tenant = 'xxx'; question_mask_size: 0 @@ -1357,7 +1327,7 @@ question_mask_size: 0 |--[0],[T_TENANT_NAME], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=[xxx], value=[9223372036854775807] -************** Case 80 *************** +************** Case 76 *************** alter system modify zone 'z1' set region 'r1' question_mask_size: 0 @@ -1368,9 +1338,9 @@ question_mask_size: 0 |--[2],[T_LINK_NODE], str_value_=[], value=[9223372036854775807] |--[0],[T_REGION], str_value_=[r1], value=[9223372036854775807] -************** Case 81 *************** +************** Case 77 *************** alter system start zone 'z1' region 'r1' -************** Case 82 *************** +************** Case 78 *************** alter system modify zone 'z1' IDC 'idc1' question_mask_size: 0 @@ -1381,7 +1351,7 @@ question_mask_size: 0 |--[2],[T_LINK_NODE], str_value_=[], value=[9223372036854775807] |--[0],[T_IDC], str_value_=[idc1], value=[9223372036854775807] -************** Case 83 *************** +************** Case 79 *************** alter system modify zone 'z1' set IDC 'idc1', region 'r1' question_mask_size: 0 @@ -1393,7 +1363,7 @@ question_mask_size: 0 |--[0],[T_IDC], str_value_=[idc1], value=[9223372036854775807] |--[1],[T_REGION], str_value_=[r1], value=[9223372036854775807] -************** Case 84 *************** +************** Case 80 *************** alter system add zone 'z1' idc 'idc1', region 'r1' question_mask_size: 0 @@ -1405,7 +1375,7 @@ question_mask_size: 0 |--[0],[T_IDC], str_value_=[idc1], value=[9223372036854775807] |--[1],[T_REGION], str_value_=[r1], value=[9223372036854775807] -************** Case 85 *************** +************** Case 81 *************** alter system add zone 'z1' idc 'idc1' question_mask_size: 0 @@ -1416,7 +1386,7 @@ question_mask_size: 0 |--[2],[T_LINK_NODE], str_value_=[], value=[9223372036854775807] |--[0],[T_IDC], str_value_=[idc1], value=[9223372036854775807] -************** Case 86 *************** +************** Case 82 *************** alter system modify zone 'z1' question_mask_size: 0 @@ -1425,11 +1395,11 @@ question_mask_size: 0 |--[0],[T_INT], str_value_=[], value=[5] |--[1],[T_VARCHAR], str_value_=[z1], value=[9223372036854775807] -************** Case 87 *************** +************** Case 83 *************** alter system start zone 'z1' IDC 'idc1' -************** Case 88 *************** +************** Case 84 *************** alter system start zone 'z1' zone_type 'ReadWrite' -************** Case 89 *************** +************** Case 85 *************** alter system add zone 'z1' zone_type 'ReadWrite', idc 'idc1', region 'r1' question_mask_size: 0 @@ -1442,7 +1412,7 @@ question_mask_size: 0 |--[1],[T_IDC], str_value_=[idc1], value=[9223372036854775807] |--[2],[T_REGION], str_value_=[r1], value=[9223372036854775807] -************** Case 90 *************** +************** Case 86 *************** alter system add zone 'z1' zone_type 'ReadWrite', idc 'idc1' question_mask_size: 0 @@ -1454,7 +1424,7 @@ question_mask_size: 0 |--[0],[T_ZONE_TYPE], str_value_=[ReadWrite], value=[9223372036854775807] |--[1],[T_IDC], str_value_=[idc1], value=[9223372036854775807] -************** Case 91 *************** +************** Case 87 *************** alter system add zone 'z1' zone_type 'ReadWrite', region 'r1' question_mask_size: 0 @@ -1466,7 +1436,7 @@ question_mask_size: 0 |--[0],[T_ZONE_TYPE], str_value_=[ReadWrite], value=[9223372036854775807] |--[1],[T_REGION], str_value_=[r1], value=[9223372036854775807] -************** Case 92 *************** +************** Case 88 *************** alter system add zone 'z1' zone_type 'ReadWrite' question_mask_size: 0 @@ -1477,7 +1447,7 @@ question_mask_size: 0 |--[2],[T_LINK_NODE], str_value_=[], value=[9223372036854775807] |--[0],[T_ZONE_TYPE], str_value_=[ReadWrite], value=[9223372036854775807] -************** Case 93 *************** +************** Case 89 *************** alter system modify zone 'z1' zone_type 'ReadWrite', idc 'idc1', region 'r1' question_mask_size: 0 @@ -1490,7 +1460,7 @@ question_mask_size: 0 |--[1],[T_IDC], str_value_=[idc1], value=[9223372036854775807] |--[2],[T_REGION], str_value_=[r1], value=[9223372036854775807] -************** Case 94 *************** +************** Case 90 *************** alter system modify zone 'z1' zone_type 'ReadWrite', idc 'idc1' question_mask_size: 0 @@ -1502,7 +1472,7 @@ question_mask_size: 0 |--[0],[T_ZONE_TYPE], str_value_=[ReadWrite], value=[9223372036854775807] |--[1],[T_IDC], str_value_=[idc1], value=[9223372036854775807] -************** Case 95 *************** +************** Case 91 *************** alter system modify zone 'z1' zone_type 'ReadWrite', region 'r1' question_mask_size: 0 @@ -1514,7 +1484,7 @@ question_mask_size: 0 |--[0],[T_ZONE_TYPE], str_value_=[ReadWrite], value=[9223372036854775807] |--[1],[T_REGION], str_value_=[r1], value=[9223372036854775807] -************** Case 96 *************** +************** Case 92 *************** alter system modify zone 'z1' zone_type 'ReadWrite' question_mask_size: 0 @@ -1525,7 +1495,7 @@ question_mask_size: 0 |--[2],[T_LINK_NODE], str_value_=[], value=[9223372036854775807] |--[0],[T_ZONE_TYPE], str_value_=[ReadWrite], value=[9223372036854775807] -************** Case 97 *************** +************** Case 93 *************** select * from t1 where c1>ANY(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1558,7 +1528,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 98 *************** +************** Case 94 *************** select * from t1 where c1>SOME(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1591,7 +1561,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 99 *************** +************** Case 95 *************** select * from t1 where c1>ALL(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1624,7 +1594,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 100 *************** +************** Case 96 *************** select * from t1 where c1>(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1656,7 +1626,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 101 *************** +************** Case 97 *************** select * from t1 where c11); question_mask_size: 0 @@ -1689,7 +1659,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 102 *************** +************** Case 98 *************** select * from t1 where c11); question_mask_size: 0 @@ -1722,7 +1692,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 103 *************** +************** Case 99 *************** select * from t1 where c11); question_mask_size: 0 @@ -1755,7 +1725,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 104 *************** +************** Case 100 *************** select * from t1 where c1<(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1787,7 +1757,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 105 *************** +************** Case 101 *************** select * from t1 where c1>=ANY(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1820,7 +1790,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 106 *************** +************** Case 102 *************** select * from t1 where c1>=SOME(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1853,7 +1823,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 107 *************** +************** Case 103 *************** select * from t1 where c1>=ALL(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1886,7 +1856,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 108 *************** +************** Case 104 *************** select * from t1 where c1>=(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1918,7 +1888,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 109 *************** +************** Case 105 *************** select * from t1 where c1<=ANY(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1951,7 +1921,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 110 *************** +************** Case 106 *************** select * from t1 where c1<=SOME(select c1 from t2 where c2>1); question_mask_size: 0 @@ -1984,7 +1954,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 111 *************** +************** Case 107 *************** select * from t1 where c1<=ALL(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2017,7 +1987,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 112 *************** +************** Case 108 *************** select * from t1 where c1<=(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2049,7 +2019,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 113 *************** +************** Case 109 *************** select * from t1 where c1=ANY(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2082,7 +2052,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 114 *************** +************** Case 110 *************** select * from t1 where c1=SOME(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2115,7 +2085,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 115 *************** +************** Case 111 *************** select * from t1 where c1=ALL(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2148,7 +2118,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 116 *************** +************** Case 112 *************** select * from t1 where c1=(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2180,7 +2150,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 117 *************** +************** Case 113 *************** select * from t1 where c1!=ANY(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2213,7 +2183,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 118 *************** +************** Case 114 *************** select * from t1 where c1!=SOME(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2246,7 +2216,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 119 *************** +************** Case 115 *************** select * from t1 where c1!=ALL(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2279,7 +2249,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 120 *************** +************** Case 116 *************** select * from t1 where c1!=(select c1 from t2 where c2>1); question_mask_size: 0 @@ -2311,7 +2281,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 121 *************** +************** Case 117 *************** select * from t1 where c1 in (select c1 from t2 where c2>1); question_mask_size: 0 @@ -2343,7 +2313,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 122 *************** +************** Case 118 *************** select * from t1 where c1 not in (select c1 from t2 where c2>1); question_mask_size: 0 @@ -2375,7 +2345,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 123 *************** +************** Case 119 *************** select * from t1 where exists (select c1 from t2 where c2>1); question_mask_size: 0 @@ -2405,7 +2375,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 124 *************** +************** Case 120 *************** select * from t1 where not exists (select c1 from t2 where c2>1); question_mask_size: 0 @@ -2436,7 +2406,7 @@ question_mask_size: 0 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_INT], str_value_=[1], value=[1] -************** Case 125 *************** +************** Case 121 *************** select * from t1 where (select c1 from t1) like (select c2 from t2); question_mask_size: 0 @@ -2470,7 +2440,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 126 *************** +************** Case 122 *************** select * from t1 where (select c1 from t1) not like (select c2 from t2); question_mask_size: 0 @@ -2504,7 +2474,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 127 *************** +************** Case 123 *************** select * from t1 where (c1) in (select c1 from t2); question_mask_size: 0 @@ -2531,7 +2501,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 128 *************** +************** Case 124 *************** select * from t1 where (c1, c2) in (select c1, c2 from t2); question_mask_size: 0 @@ -2564,7 +2534,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 129 *************** +************** Case 125 *************** select * from t1 where ROW(c1, c2) in (select c1, c2 from t2); question_mask_size: 0 @@ -2597,7 +2567,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 130 *************** +************** Case 126 *************** set names latin1; question_mask_size: 0 @@ -2605,7 +2575,7 @@ question_mask_size: 0 |--[0],[T_SET_NAMES], str_value_=[], value=[0] |--[0],[T_CHAR_CHARSET], str_value_=[latin1], value=[9223372036854775807] -************** Case 131 *************** +************** Case 127 *************** set names 'latin1'; question_mask_size: 0 @@ -2613,7 +2583,7 @@ question_mask_size: 0 |--[0],[T_SET_NAMES], str_value_=[], value=[0] |--[0],[T_VARCHAR], str_value_=[latin1], value=[9223372036854775807] -************** Case 132 *************** +************** Case 128 *************** set names utf8 collate 'utf8_general_ci'; question_mask_size: 0 @@ -2622,7 +2592,7 @@ question_mask_size: 0 |--[0],[T_CHAR_CHARSET], str_value_=[utf8], value=[9223372036854775807] |--[1],[T_COLLATION], str_value_=[utf8_general_ci], value=[9223372036854775807] -************** Case 133 *************** +************** Case 129 *************** set names utf8 collate utf8_general_ci; question_mask_size: 0 @@ -2631,7 +2601,7 @@ question_mask_size: 0 |--[0],[T_CHAR_CHARSET], str_value_=[utf8], value=[9223372036854775807] |--[1],[T_COLLATION], str_value_=[utf8_general_ci], value=[9223372036854775807] -************** Case 134 *************** +************** Case 130 *************** set character set utf8; question_mask_size: 0 @@ -2639,7 +2609,7 @@ question_mask_size: 0 |--[0],[T_SET_CHARSET], str_value_=[], value=[0] |--[0],[T_CHAR_CHARSET], str_value_=[utf8], value=[9223372036854775807] -************** Case 135 *************** +************** Case 131 *************** set character set 'utf8'; question_mask_size: 0 @@ -2647,7 +2617,7 @@ question_mask_size: 0 |--[0],[T_SET_CHARSET], str_value_=[], value=[0] |--[0],[T_VARCHAR], str_value_=[utf8], value=[9223372036854775807] -************** Case 136 *************** +************** Case 132 *************** set charset utf8; question_mask_size: 0 @@ -2655,7 +2625,7 @@ question_mask_size: 0 |--[0],[T_SET_CHARSET], str_value_=[], value=[0] |--[0],[T_CHAR_CHARSET], str_value_=[utf8], value=[9223372036854775807] -************** Case 137 *************** +************** Case 133 *************** select _utf8 'abc', _utf8mb4 'def' collate utf8mb4_general_ci from t1 where c1 collate utf8_bin = 'xyz' collate utf8_bin; question_mask_size: 0 @@ -2693,7 +2663,7 @@ question_mask_size: 0 |--[1],[T_VARCHAR], str_value_=[xyz], value=[9223372036854775807] |--[1],[T_COLLATION], str_value_=[utf8_bin], value=[9223372036854775807] -************** Case 138 *************** +************** Case 134 *************** select * from t1 where c1=?; question_mask_size: 1 @@ -2712,7 +2682,7 @@ question_mask_size: 1 |--[2],[T_IDENT], str_value_=[c1], value=[9223372036854775807] |--[1],[T_QUESTIONMARK], str_value_=[], value=[0] -************** Case 139 *************** +************** Case 135 *************** select * from t1 where c1>?; question_mask_size: 1 @@ -2731,7 +2701,7 @@ question_mask_size: 1 |--[2],[T_IDENT], str_value_=[c1], value=[9223372036854775807] |--[1],[T_QUESTIONMARK], str_value_=[], value=[0] -************** Case 140 *************** +************** Case 136 *************** select * from t1 where (select c1 from t1 where c1 = ?) not like (select c2 from t2 where c2=?); question_mask_size: 2 @@ -2775,7 +2745,7 @@ question_mask_size: 2 |--[2],[T_IDENT], str_value_=[c2], value=[9223372036854775807] |--[1],[T_QUESTIONMARK], str_value_=[], value=[1] -************** Case 141 *************** +************** Case 137 *************** select * from t1 join t2; question_mask_size: 0 @@ -2794,7 +2764,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 142 *************** +************** Case 138 *************** select * from t1 inner join t2; question_mask_size: 0 @@ -2813,7 +2783,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 143 *************** +************** Case 139 *************** select * from t1 cross join t2; question_mask_size: 0 @@ -2832,7 +2802,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 144 *************** +************** Case 140 *************** select * from t1 cross join t2 join t3; question_mask_size: 0 @@ -2856,7 +2826,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t3], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t3], value=[9223372036854775807] -************** Case 145 *************** +************** Case 141 *************** select "1234"; question_mask_size: 0 @@ -2867,7 +2837,7 @@ question_mask_size: 0 |--[0],[T_VARCHAR], str_value_=[1234], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[1234], value=[9223372036854775807] -************** Case 146 *************** +************** Case 142 *************** select '1234'; question_mask_size: 0 @@ -2878,7 +2848,7 @@ question_mask_size: 0 |--[0],[T_VARCHAR], str_value_=[1234], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[1234], value=[9223372036854775807] -************** Case 147 *************** +************** Case 143 *************** create table test(c1 varchar(3) binary charset utf8mb4); question_mask_size: 0 @@ -2894,7 +2864,7 @@ question_mask_size: 0 |--[0],[T_CHARSET], str_value_=[utf8mb4], value=[9223372036854775807] |--[2],[T_BINARY], str_value_=[], value=[1] -************** Case 148 *************** +************** Case 144 *************** replace into test values(1,2); question_mask_size: 0 @@ -2911,7 +2881,7 @@ question_mask_size: 0 |--[1],[T_INT], str_value_=[2], value=[2] |--[1],[T_REPLACE], str_value_=[], value=[9223372036854775807] -************** Case 149 *************** +************** Case 145 *************** replace ignore into test values(1,2); question_mask_size: 0 @@ -2929,7 +2899,7 @@ question_mask_size: 0 |--[1],[T_REPLACE], str_value_=[], value=[9223372036854775807] |--[3],[T_IGNORE], str_value_=[], value=[9223372036854775807] -************** Case 150 *************** +************** Case 146 *************** insert ignore into test values(1,2); question_mask_size: 0 @@ -2947,7 +2917,7 @@ question_mask_size: 0 |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] |--[3],[T_IGNORE], str_value_=[], value=[9223372036854775807] -************** Case 151 *************** +************** Case 147 *************** insert ignore into test values(1,2) on duplicate key update c2 = c1 + 1; question_mask_size: 0 @@ -2973,7 +2943,7 @@ question_mask_size: 0 |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] |--[3],[T_IGNORE], str_value_=[], value=[9223372036854775807] -************** Case 152 *************** +************** Case 148 *************** create outline out_name on select * from t1; question_mask_size: 0 @@ -2991,7 +2961,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 153 *************** +************** Case 149 *************** create or replace outline out_name on select * from t1; question_mask_size: 0 @@ -3010,7 +2980,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 154 *************** +************** Case 150 *************** create outline out_name on select * from t1; question_mask_size: 0 @@ -3028,7 +2998,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 155 *************** +************** Case 151 *************** create outline out_name on select /*+ssssss*/* from t1; question_mask_size: 0 @@ -3046,7 +3016,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 156 *************** +************** Case 152 *************** create outline out_name on select /*+ssssss*/* from t1 to select /*+ssssss*/* from t1; question_mask_size: 0 @@ -3072,7 +3042,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 157 *************** +************** Case 153 *************** create outline out_name on select /*+ssssss*/* from t1 to select * from t1; question_mask_size: 0 @@ -3098,7 +3068,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 158 *************** +************** Case 154 *************** create outline out_name on insert /*+ssssss*/ into t1 values(1, 2) to insert /*+ssssss*/ into t1 values(1, 2); question_mask_size: 0 @@ -3130,7 +3100,7 @@ question_mask_size: 0 |--[1],[T_INT], str_value_=[2], value=[2] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 159 *************** +************** Case 155 *************** drop outline out_name; question_mask_size: 0 @@ -3139,7 +3109,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[out_name], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[out_name], value=[9223372036854775807] -************** Case 160 *************** +************** Case 156 *************** drop outline db_name.out_name; question_mask_size: 0 @@ -3149,7 +3119,7 @@ question_mask_size: 0 |--[0],[T_IDENT], str_value_=[db_name], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[out_name], value=[9223372036854775807] -************** Case 161 *************** +************** Case 157 *************** create tenant tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1') set ob_tcp_invited_nodes='%'; question_mask_size: 0 @@ -3169,7 +3139,7 @@ question_mask_size: 0 |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] -************** Case 162 *************** +************** Case 158 *************** create tenant if not exists tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1') set ob_tcp_invited_nodes='%'; question_mask_size: 0 @@ -3190,7 +3160,7 @@ question_mask_size: 0 |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] -************** Case 163 *************** +************** Case 159 *************** create tenant tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1'), locality = 'auto_locality_strategy' set ob_tcp_invited_nodes='%'; question_mask_size: 0 @@ -3212,7 +3182,7 @@ question_mask_size: 0 |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] -************** Case 164 *************** +************** Case 160 *************** create tenant if not exists tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1'), locality = 'auto_locality_strategy' set ob_tcp_invited_nodes='%'; question_mask_size: 0 @@ -3235,7 +3205,7 @@ question_mask_size: 0 |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] -************** Case 165 *************** +************** Case 161 *************** create tenant tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1'), logonly_replica_num = 1 set ob_tcp_invited_nodes='%'; question_mask_size: 0 @@ -3257,7 +3227,7 @@ question_mask_size: 0 |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] -************** Case 166 *************** +************** Case 162 *************** create tenant if not exists tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1'), logonly_replica_num = 1 set ob_tcp_invited_nodes='%'; question_mask_size: 0 @@ -3280,7 +3250,7 @@ question_mask_size: 0 |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] |--[1],[T_VARCHAR], str_value_=[%], value=[9223372036854775807] -************** Case 167 *************** +************** Case 163 *************** select /*+max_concurrent(-10)*/* from t1; question_mask_size: 0 @@ -3295,7 +3265,7 @@ question_mask_size: 0 |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] |--[17],[T_HINT_OPTION_LIST], str_value_=[], value=[9223372036854775807] -************** Case 168 *************** +************** Case 164 *************** select /*+max_concurrent(10)*/* from t1; question_mask_size: 0 @@ -3312,32 +3282,32 @@ question_mask_size: 0 |--[0],[T_MAX_CONCURRENT], str_value_=[], value=[9223372036854775807] |--[0],[T_INT], str_value_=[10], value=[10] -************** Case 169 *************** +************** Case 165 *************** alter system refresh time_zone_info; question_mask_size: 0 |--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] |--[0],[T_REFRESH_TIME_ZONE_INFO], str_value_=[], value=[0] -************** Case 170 *************** +************** Case 166 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales); -************** Case 171 *************** +************** Case 167 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales where t2.id!= t1.id when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales); -************** Case 172 *************** +************** Case 168 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales where t1.id < 3 delete where t1.id < 5 when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales); -************** Case 173 *************** +************** Case 169 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales delete where t1.sales =2 when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales); -************** Case 174 *************** +************** Case 170 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales) where t2.id > 0; -************** Case 175 *************** +************** Case 171 *************** merge into targetTable t1 using sourceTable t2 on (1 = 2) when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales) where t2.id > 0; -************** Case 176 *************** +************** Case 172 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales; -************** Case 177 *************** +************** Case 173 *************** merge into targetTable using sourceTable on (targetTable.id = sourceTable.id) when matched then update set targetTable.sales = sourceTable.sales; -************** Case 178 *************** +************** Case 174 *************** merge into targetTable using (select * from t1 ) sourceTable on (targetTable.id = sourceTable.id) when matched then update set targetTable.sales = sourceTable.sales; -************** Case 179 *************** +************** Case 175 *************** select unique(c1), c2 from t1; question_mask_size: 0 @@ -3357,7 +3327,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 180 *************** +************** Case 176 *************** select unique(c1+1), c2 from t1; question_mask_size: 0 @@ -3379,7 +3349,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 181 *************** +************** Case 177 *************** select distinct unique( max(c1)), c2 from t1; question_mask_size: 0 @@ -3401,7 +3371,7 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 182 *************** +************** Case 178 *************** select unique distinct( max(c1)), c2 from t1; question_mask_size: 0 @@ -3423,106 +3393,9 @@ question_mask_size: 0 |--[0],[T_RELATION_FACTOR], str_value_=[t1], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t1], value=[9223372036854775807] -************** Case 183 *************** +************** Case 179 *************** select unique(*) from t1; -************** Case 184 *************** -delete from t1 where c1 = 1 returning c1 + 1, c2 * 2; -question_mask_size: 0 - -|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_DELETE], str_value_=[], value=[0] - |--[0],[T_DELETE_TABLE_NODE], str_value_=[], value=[9223372036854775807] - |--[1],[T_TABLE_REFERENCES], str_value_=[], value=[9223372036854775807] - |--[0],[T_ORG], str_value_=[], value=[9223372036854775807] - |--[0],[T_RELATION_FACTOR], str_value_=[T1], value=[9223372036854775807] - |--[1],[T_IDENT], str_value_=[T1], value=[1] - |--[1],[T_WHERE_CLAUSE], str_value_=[], value=[9223372036854775807] - |--[0],[T_OP_EQ], str_value_=[], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C1], value=[1] - |--[1],[T_INT], str_value_=[1], value=[1] - |--[6],[T_RETURNING], str_value_=[], value=[9223372036854775807] - |--[0],[T_PROJECT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_PROJECT_STRING], str_value_=[C1+1], value=[9223372036854775807] - |--[0],[T_OP_ADD], str_value_=[], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C1], value=[1] - |--[1],[T_INT], str_value_=[1], value=[1] - |--[1],[T_PROJECT_STRING], str_value_=[C2*2], value=[9223372036854775807] - |--[0],[T_OP_MUL], str_value_=[], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C2], value=[1] - |--[1],[T_INT], str_value_=[2], value=[2] - -************** Case 185 *************** -update t1 set c1 = 1 where c2 = 2 returning c1, c2 + 3, c3 * c4; -question_mask_size: 0 - -|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_UPDATE], str_value_=[], value=[0] - |--[0],[T_TABLE_REFERENCES], str_value_=[], value=[9223372036854775807] - |--[0],[T_ALIAS], str_value_=[], value=[9223372036854775807] - |--[0],[T_RELATION_FACTOR], str_value_=[T1], value=[9223372036854775807] - |--[1],[T_IDENT], str_value_=[T1], value=[1] - |--[1],[T_ASSIGN_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_ASSIGN_ITEM], str_value_=[], value=[9223372036854775807] - |--[0],[T_COLUMN_REF], str_value_=[C1], value=[9223372036854775807] - |--[2],[T_IDENT], str_value_=[C1], value=[1] - |--[1],[T_INT], str_value_=[1], value=[1] - |--[2],[T_WHERE_CLAUSE], str_value_=[], value=[9223372036854775807] - |--[0],[T_OP_EQ], str_value_=[], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C2], value=[1] - |--[1],[T_INT], str_value_=[2], value=[2] - |--[8],[T_RETURNING], str_value_=[], value=[9223372036854775807] - |--[0],[T_PROJECT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_PROJECT_STRING], str_value_=[C1], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C1], value=[1] - |--[1],[T_PROJECT_STRING], str_value_=[C2+3], value=[9223372036854775807] - |--[0],[T_OP_ADD], str_value_=[], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C2], value=[1] - |--[1],[T_INT], str_value_=[3], value=[3] - |--[2],[T_PROJECT_STRING], str_value_=[C3*C4], value=[9223372036854775807] - |--[0],[T_OP_MUL], str_value_=[], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C3], value=[1] - |--[1],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C4], value=[1] - -************** Case 186 *************** -insert into t1 values(1, 2, 3) returning c1, c2, c3; -question_mask_size: 0 - -|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_INSERT], str_value_=[], value=[0] - |--[0],[T_SINGLE_TABLE_INSERT], str_value_=[], value=[9223372036854775807] - |--[0],[T_INSERT_INTO_CLAUSE], str_value_=[], value=[9223372036854775807] - |--[0],[T_ALIAS], str_value_=[], value=[9223372036854775807] - |--[0],[T_RELATION_FACTOR], str_value_=[T1], value=[9223372036854775807] - |--[1],[T_IDENT], str_value_=[T1], value=[1] - |--[1],[T_VALUE_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_VALUE_VECTOR], str_value_=[], value=[9223372036854775807] - |--[0],[T_INT], str_value_=[1], value=[1] - |--[1],[T_INT], str_value_=[2], value=[2] - |--[2],[T_INT], str_value_=[3], value=[3] - |--[2],[T_RETURNING], str_value_=[], value=[9223372036854775807] - |--[0],[T_PROJECT_LIST], str_value_=[], value=[9223372036854775807] - |--[0],[T_PROJECT_STRING], str_value_=[C1], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C1], value=[1] - |--[1],[T_PROJECT_STRING], str_value_=[C2], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C2], value=[1] - |--[2],[T_PROJECT_STRING], str_value_=[C3], value=[9223372036854775807] - |--[0],[T_OBJ_ACCESS_REF], str_value_=[], value=[9223372036854775807] - |--[0],[T_IDENT], str_value_=[C3], value=[1] - |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] - -************** Case 187 *************** -replace into t1 values(1, 2) returning c1, c2, c3, c4, c5, c6; -************** Case 188 *************** +************** Case 180 *************** alter tablegroup tg2 add table t1,t2; question_mask_size: 0 @@ -3535,7 +3408,7 @@ question_mask_size: 0 |--[1],[T_RELATION_FACTOR], str_value_=[t2], value=[9223372036854775807] |--[1],[T_IDENT], str_value_=[t2], value=[9223372036854775807] -************** Case 189 *************** +************** Case 181 *************** insert into t1 values(X''); question_mask_size: 0 @@ -3551,7 +3424,7 @@ question_mask_size: 0 |--[0],[T_HEX_STRING], str_value_=[], value=[9223372036854775807] |--[1],[T_INSERT], str_value_=[], value=[9223372036854775807] -************** Case 190 *************** +************** Case 182 *************** create table t1(`thedate` date NOT NULL COMMENT '日期'); question_mask_size: 0 @@ -3569,7 +3442,7 @@ question_mask_size: 0 |--[1],[T_COMMENT], str_value_=[], value=[9223372036854775807] |--[0],[T_VARCHAR], str_value_=[日期], value=[9223372036854775807] -************** Case 191 *************** +************** Case 183 *************** alter system bootstrap REGION 'sys_region' ZONE 'zone1' SERVER '10.101.74.122:41425'; question_mask_size: 0 diff --git a/unittest/sql/parser/test_parser.result b/unittest/sql/parser/test_parser.result index 81f6caa5b2a77b1658aa5909b11554e30b139a41..7928da1f23e6c0b89b2a8a7e7f623d53a7cd93d5 100644 --- a/unittest/sql/parser/test_parser.result +++ b/unittest/sql/parser/test_parser.result @@ -1064,96 +1064,6 @@ question_mask_size: 0 ] } ************** Case 20 *************** -commit comment 'comment transaction commit'; -question_mask_size: 0 -{ - "type":"T_STMT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_COMMIT", - "int_val":0, - "str_len":0, - "str_val":"", - "children": [ - { } - ] - } - ] -} -************** Case 21 *************** -commit work comment 'comment txn commit work'; -question_mask_size: 0 -{ - "type":"T_STMT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_COMMIT", - "int_val":0, - "str_len":0, - "str_val":"", - "children": [ - { } - ] - } - ] -} -************** Case 22 *************** -commit/*hint+commit tx hint*/ comment 'comment + hint'; -question_mask_size: 0 -{ - "type":"T_STMT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_COMMIT", - "int_val":0, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_HINT", - "int_val":9223372036854775807, - "str_len":15, - "str_val":"commit tx hint" - } - ] - } - ] -} -************** Case 23 *************** -commit/*hint+commit tx work hint*/ work comment 'comment + hint'; -question_mask_size: 0 -{ - "type":"T_STMT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_COMMIT", - "int_val":0, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_HINT", - "int_val":9223372036854775807, - "str_len":20, - "str_val":"commit tx work hint" - } - ] - } - ] -} -************** Case 24 *************** rollback; question_mask_size: 0 { @@ -1173,7 +1083,7 @@ question_mask_size: 0 } ] } -************** Case 25 *************** +************** Case 21 *************** rollback/*hint+rollback*/; question_mask_size: 0 { @@ -1198,7 +1108,7 @@ question_mask_size: 0 } ] } -************** Case 26 *************** +************** Case 22 *************** rollback work; question_mask_size: 0 { @@ -1218,7 +1128,7 @@ question_mask_size: 0 } ] } -************** Case 27 *************** +************** Case 23 *************** rollback/*hint+rollback work*/ work; question_mask_size: 0 { @@ -1243,7 +1153,7 @@ question_mask_size: 0 } ] } -************** Case 28 *************** +************** Case 24 *************** alter user 'zdy' account lock; question_mask_size: 0 { @@ -1291,7 +1201,7 @@ question_mask_size: 0 } ] } -************** Case 29 *************** +************** Case 25 *************** alter user 'zdy' account unlock; question_mask_size: 0 { @@ -1339,7 +1249,7 @@ question_mask_size: 0 } ] } -************** Case 30 *************** +************** Case 26 *************** select d.t1.c1, sum(t1.c2) from d.t1 where d.t1.c1 > 0 and c2 + d.t1.c1 = 100 group by d.t1.c2 order by t.d1.c1 desc limit 0, 1 question_mask_size: 0 { @@ -1753,7 +1663,7 @@ question_mask_size: 0 } ] } -************** Case 31 *************** +************** Case 27 *************** select c1, sum(d.t1.c2) from t1 where t1.c1 > 0 and c2 + t1.c1 = 100 group by t1.c2 order by t1.c1 desc limit 0, 1 question_mask_size: 0 { @@ -2137,7 +2047,7 @@ question_mask_size: 0 } ] } -************** Case 32 *************** +************** Case 28 *************** select t1.c1, sum(c2) from t1 where c1 > 0 and c2 + c1 = 100 group by c2 order by c1 desc limit 0, 1 question_mask_size: 0 { @@ -2496,7 +2406,7 @@ question_mask_size: 0 } ] } -************** Case 33 *************** +************** Case 29 *************** insert into t1 values(1, 2) question_mask_size: 0 { @@ -2595,7 +2505,7 @@ question_mask_size: 0 } ] } -************** Case 34 *************** +************** Case 30 *************** insert into t1.t1 values(1, 2) question_mask_size: 0 { @@ -2699,7 +2609,7 @@ question_mask_size: 0 } ] } -************** Case 35 *************** +************** Case 31 *************** insert into t1(c1) values(1), (2) question_mask_size: 0 { @@ -2829,7 +2739,7 @@ question_mask_size: 0 } ] } -************** Case 36 *************** +************** Case 32 *************** insert into t1(t1.c1) values(1), (2) question_mask_size: 0 { @@ -2964,7 +2874,7 @@ question_mask_size: 0 } ] } -************** Case 37 *************** +************** Case 33 *************** insert into d.t1(d.t1.c1) values(1), (2) question_mask_size: 0 { @@ -3109,7 +3019,7 @@ question_mask_size: 0 } ] } -************** Case 38 *************** +************** Case 34 *************** update t1 set d.t1.c2=t1.c1+1 where d.t1.c1 > 1 order by d.t1.c1 desc limit 0, 10 question_mask_size: 0 { @@ -3370,7 +3280,7 @@ question_mask_size: 0 } ] } -************** Case 39 *************** +************** Case 35 *************** update d.t1 set t1.c2=d.t1c1+1 where t1.c1 > 1 order by c1 desc limit 0, 10 question_mask_size: 0 { @@ -3616,7 +3526,7 @@ question_mask_size: 0 } ] } -************** Case 40 *************** +************** Case 36 *************** delete from d.t1 where d.t1.c2 > 10 order by c1 limit 0, 1 question_mask_size: 0 { @@ -3803,7 +3713,7 @@ question_mask_size: 0 } ] } -************** Case 41 *************** +************** Case 37 *************** select t1.c1, t2.c1 from d.t1 join d.t2 on d.t1.c1=t2.c1 where t1.c1>0; question_mask_size: 0 { @@ -4093,7 +4003,7 @@ question_mask_size: 0 } ] } -************** Case 42 *************** +************** Case 38 *************** select d.t1.c1, t2.c1 from d.t1 join t2 on t1.c1=t2.c1 where t1.c1>0; question_mask_size: 0 { @@ -4378,7 +4288,7 @@ question_mask_size: 0 } ] } -************** Case 43 *************** +************** Case 39 *************** select d.t1.c1, t2.c1 from d.t1 join t2 on c1=c1 where t1.c1>0; question_mask_size: 0 { @@ -4653,7 +4563,7 @@ question_mask_size: 0 } ] } -************** Case 44 *************** +************** Case 40 *************** insert into t1 value (1, 2), (3, 4) on duplicate key update d.t.c1 = t.c2 + 1, c2 = c2 + 3; question_mask_size: 0 { @@ -4902,7 +4812,7 @@ question_mask_size: 0 } ] } -************** Case 45 *************** +************** Case 41 *************** insert into d.t1 value (1, 2), (3, 4) on duplicate key update t.c1 = t.c2 + 1, d.t.c2 = t.c2 + 3; question_mask_size: 0 { @@ -5166,7 +5076,7 @@ question_mask_size: 0 } ] } -************** Case 46 *************** +************** Case 42 *************** create table rongxuan(c int primary key, c2 int) question_mask_size: 0 { @@ -5290,7 +5200,7 @@ question_mask_size: 0 } ] } -************** Case 47 *************** +************** Case 43 *************** create table rongxuan(rongxuan.c int primary key, c2 int) question_mask_size: 0 { @@ -5419,7 +5329,7 @@ question_mask_size: 0 } ] } -************** Case 48 *************** +************** Case 44 *************** create table rongxuan(d.rongxuan.c int primary key, c2 int) question_mask_size: 0 { @@ -5553,7 +5463,7 @@ question_mask_size: 0 } ] } -************** Case 49 *************** +************** Case 45 *************** drop table t1 question_mask_size: 0 { @@ -5597,7 +5507,7 @@ question_mask_size: 0 } ] } -************** Case 50 *************** +************** Case 46 *************** drop table oceanbase.t, t1 question_mask_size: 0 { @@ -5661,7 +5571,7 @@ question_mask_size: 0 } ] } -************** Case 51 *************** +************** Case 47 *************** alter table rongxuan add c3 int; question_mask_size: 0 { @@ -5751,7 +5661,7 @@ question_mask_size: 0 } ] } -************** Case 52 *************** +************** Case 48 *************** alter table rongxuan add rongxuan.c4 int; question_mask_size: 0 { @@ -5846,7 +5756,7 @@ question_mask_size: 0 } ] } -************** Case 53 *************** +************** Case 49 *************** alter table rongxuan add test.rongxuan.c5 int; question_mask_size: 0 { @@ -5946,7 +5856,7 @@ question_mask_size: 0 } ] } -************** Case 54 *************** +************** Case 50 *************** drop database rongxuan question_mask_size: 0 { @@ -5972,7 +5882,7 @@ question_mask_size: 0 } ] } -************** Case 55 *************** +************** Case 51 *************** create database rongxuan question_mask_size: 0 { @@ -5999,7 +5909,7 @@ question_mask_size: 0 } ] } -************** Case 56 *************** +************** Case 52 *************** create database if not exists rongxuan question_mask_size: 0 { @@ -6031,7 +5941,7 @@ question_mask_size: 0 } ] } -************** Case 57 *************** +************** Case 53 *************** create database if not exists rongxuan default character set = 'utf8' default collate = 'default_collate' question_mask_size: 0 { @@ -6082,7 +5992,7 @@ question_mask_size: 0 } ] } -************** Case 58 *************** +************** Case 54 *************** select * from d.t1 PARTITION(p1, p2); question_mask_size: 0 { @@ -6211,7 +6121,7 @@ question_mask_size: 0 } ] } -************** Case 59 *************** +************** Case 55 *************** delete from d.t1 PARTITION(p0, p1); question_mask_size: 0 { @@ -6312,7 +6222,7 @@ question_mask_size: 0 } ] } -************** Case 60 *************** +************** Case 56 *************** update d.t1 PARTITION (p2) SET id = 2 WHERE name = 'Jill'; question_mask_size: 0 { @@ -6484,7 +6394,7 @@ question_mask_size: 0 } ] } -************** Case 61 *************** +************** Case 57 *************** INSERT INTO d.t1 PARTITION (p3, p4) VALUES (24, 'Tim', 'Greene', 3, 1), (26, 'Linda', 'Mills', 2, 1); question_mask_size: 0 { @@ -6707,7 +6617,7 @@ question_mask_size: 0 } ] } -************** Case 62 *************** +************** Case 58 *************** REPLACE INTO d.t1 PARTITION (p0) VALUES (20, 'Jan', 'Jones', 3, 2); question_mask_size: 0 { @@ -6868,7 +6778,7 @@ question_mask_size: 0 } ] } -************** Case 63 *************** +************** Case 59 *************** SELECT e.id, s.city, d.name FROM e JOIN stores PARTITION (p1) ON e.id=s.id JOIN departments PARTITION (p0) ON e.id=d.id; question_mask_size: 0 { @@ -7262,7 +7172,7 @@ question_mask_size: 0 } ] } -************** Case 64 *************** +************** Case 60 *************** alter system report replica; question_mask_size: 0 { @@ -7282,7 +7192,7 @@ question_mask_size: 0 } ] } -************** Case 65 *************** +************** Case 61 *************** alter system report replica server = '127.0.0.1:80'; question_mask_size: 0 { @@ -7315,7 +7225,7 @@ question_mask_size: 0 } ] } -************** Case 66 *************** +************** Case 62 *************** alter system report replica zone = 'z1'; question_mask_size: 0 { @@ -7348,7 +7258,7 @@ question_mask_size: 0 } ] } -************** Case 67 *************** +************** Case 63 *************** alter system recycle replica; question_mask_size: 0 { @@ -7368,7 +7278,7 @@ question_mask_size: 0 } ] } -************** Case 68 *************** +************** Case 64 *************** alter system recycle replica server = '127.0.0.1:80'; question_mask_size: 0 { @@ -7401,7 +7311,7 @@ question_mask_size: 0 } ] } -************** Case 69 *************** +************** Case 65 *************** alter system recycle replica server '127.0.0.1:80'; question_mask_size: 0 { @@ -7434,7 +7344,7 @@ question_mask_size: 0 } ] } -************** Case 70 *************** +************** Case 66 *************** alter system recycle replica zone = 'z1'; question_mask_size: 0 { @@ -7467,7 +7377,7 @@ question_mask_size: 0 } ] } -************** Case 71 *************** +************** Case 67 *************** alter system recycle replica zone 'z1'; question_mask_size: 0 { @@ -7500,7 +7410,7 @@ question_mask_size: 0 } ] } -************** Case 72 *************** +************** Case 68 *************** alter system major freeze; question_mask_size: 0 { @@ -7526,7 +7436,7 @@ question_mask_size: 0 } ] } -************** Case 73 *************** +************** Case 69 *************** alter system start merge zone = 'z1'; question_mask_size: 0 { @@ -7565,7 +7475,7 @@ question_mask_size: 0 } ] } -************** Case 74 *************** +************** Case 70 *************** alter system suspend merge; question_mask_size: 0 { @@ -7591,7 +7501,7 @@ question_mask_size: 0 } ] } -************** Case 75 *************** +************** Case 71 *************** alter system suspend merge tenant = all; question_mask_size: 0 { @@ -7630,7 +7540,7 @@ question_mask_size: 0 } ] } -************** Case 76 *************** +************** Case 72 *************** alter system resume merge; question_mask_size: 0 { @@ -7656,7 +7566,7 @@ question_mask_size: 0 } ] } -************** Case 77 *************** +************** Case 73 *************** alter system resume merge tenant = all; question_mask_size: 0 { @@ -7695,7 +7605,7 @@ question_mask_size: 0 } ] } -************** Case 78 *************** +************** Case 74 *************** alter system clear roottable; question_mask_size: 0 { @@ -7715,7 +7625,7 @@ question_mask_size: 0 } ] } -************** Case 79 *************** +************** Case 75 *************** alter system clear roottable tenant = 'xxx'; question_mask_size: 0 { @@ -7748,7 +7658,7 @@ question_mask_size: 0 } ] } -************** Case 80 *************** +************** Case 76 *************** alter system modify zone 'z1' set region 'r1' question_mask_size: 0 { @@ -7793,9 +7703,9 @@ question_mask_size: 0 } ] } -************** Case 81 *************** +************** Case 77 *************** alter system start zone 'z1' region 'r1' -************** Case 82 *************** +************** Case 78 *************** alter system modify zone 'z1' IDC 'idc1' question_mask_size: 0 { @@ -7840,7 +7750,7 @@ question_mask_size: 0 } ] } -************** Case 83 *************** +************** Case 79 *************** alter system modify zone 'z1' set IDC 'idc1', region 'r1' question_mask_size: 0 { @@ -7891,7 +7801,7 @@ question_mask_size: 0 } ] } -************** Case 84 *************** +************** Case 80 *************** alter system add zone 'z1' idc 'idc1', region 'r1' question_mask_size: 0 { @@ -7942,7 +7852,7 @@ question_mask_size: 0 } ] } -************** Case 85 *************** +************** Case 81 *************** alter system add zone 'z1' idc 'idc1' question_mask_size: 0 { @@ -7987,7 +7897,7 @@ question_mask_size: 0 } ] } -************** Case 86 *************** +************** Case 82 *************** alter system modify zone 'z1' question_mask_size: 0 { @@ -8019,11 +7929,11 @@ question_mask_size: 0 } ] } -************** Case 87 *************** +************** Case 83 *************** alter system start zone 'z1' IDC 'idc1' -************** Case 88 *************** +************** Case 84 *************** alter system start zone 'z1' zone_type 'ReadWrite' -************** Case 89 *************** +************** Case 85 *************** alter system add zone 'z1' zone_type 'ReadWrite', idc 'idc1', region 'r1' question_mask_size: 0 { @@ -8080,7 +7990,7 @@ question_mask_size: 0 } ] } -************** Case 90 *************** +************** Case 86 *************** alter system add zone 'z1' zone_type 'ReadWrite', idc 'idc1' question_mask_size: 0 { @@ -8131,7 +8041,7 @@ question_mask_size: 0 } ] } -************** Case 91 *************** +************** Case 87 *************** alter system add zone 'z1' zone_type 'ReadWrite', region 'r1' question_mask_size: 0 { @@ -8182,7 +8092,7 @@ question_mask_size: 0 } ] } -************** Case 92 *************** +************** Case 88 *************** alter system add zone 'z1' zone_type 'ReadWrite' question_mask_size: 0 { @@ -8227,7 +8137,7 @@ question_mask_size: 0 } ] } -************** Case 93 *************** +************** Case 89 *************** alter system modify zone 'z1' zone_type 'ReadWrite', idc 'idc1', region 'r1' question_mask_size: 0 { @@ -8284,7 +8194,7 @@ question_mask_size: 0 } ] } -************** Case 94 *************** +************** Case 90 *************** alter system modify zone 'z1' zone_type 'ReadWrite', idc 'idc1' question_mask_size: 0 { @@ -8335,7 +8245,7 @@ question_mask_size: 0 } ] } -************** Case 95 *************** +************** Case 91 *************** alter system modify zone 'z1' zone_type 'ReadWrite', region 'r1' question_mask_size: 0 { @@ -8386,7 +8296,7 @@ question_mask_size: 0 } ] } -************** Case 96 *************** +************** Case 92 *************** alter system modify zone 'z1' zone_type 'ReadWrite' question_mask_size: 0 { @@ -8431,7 +8341,7 @@ question_mask_size: 0 } ] } -************** Case 97 *************** +************** Case 93 *************** select * from t1 where c1>ANY(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -8702,7 +8612,7 @@ question_mask_size: 0 } ] } -************** Case 98 *************** +************** Case 94 *************** select * from t1 where c1>SOME(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -8973,7 +8883,7 @@ question_mask_size: 0 } ] } -************** Case 99 *************** +************** Case 95 *************** select * from t1 where c1>ALL(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -9244,7 +9154,7 @@ question_mask_size: 0 } ] } -************** Case 100 *************** +************** Case 96 *************** select * from t1 where c1>(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -9507,7 +9417,7 @@ question_mask_size: 0 } ] } -************** Case 101 *************** +************** Case 97 *************** select * from t1 where c11); question_mask_size: 0 { @@ -9778,7 +9688,7 @@ question_mask_size: 0 } ] } -************** Case 102 *************** +************** Case 98 *************** select * from t1 where c11); question_mask_size: 0 { @@ -10049,7 +9959,7 @@ question_mask_size: 0 } ] } -************** Case 103 *************** +************** Case 99 *************** select * from t1 where c11); question_mask_size: 0 { @@ -10320,7 +10230,7 @@ question_mask_size: 0 } ] } -************** Case 104 *************** +************** Case 100 *************** select * from t1 where c1<(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -10583,7 +10493,7 @@ question_mask_size: 0 } ] } -************** Case 105 *************** +************** Case 101 *************** select * from t1 where c1>=ANY(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -10854,7 +10764,7 @@ question_mask_size: 0 } ] } -************** Case 106 *************** +************** Case 102 *************** select * from t1 where c1>=SOME(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -11125,7 +11035,7 @@ question_mask_size: 0 } ] } -************** Case 107 *************** +************** Case 103 *************** select * from t1 where c1>=ALL(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -11396,7 +11306,7 @@ question_mask_size: 0 } ] } -************** Case 108 *************** +************** Case 104 *************** select * from t1 where c1>=(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -11659,7 +11569,7 @@ question_mask_size: 0 } ] } -************** Case 109 *************** +************** Case 105 *************** select * from t1 where c1<=ANY(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -11930,7 +11840,7 @@ question_mask_size: 0 } ] } -************** Case 110 *************** +************** Case 106 *************** select * from t1 where c1<=SOME(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -12201,7 +12111,7 @@ question_mask_size: 0 } ] } -************** Case 111 *************** +************** Case 107 *************** select * from t1 where c1<=ALL(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -12472,7 +12382,7 @@ question_mask_size: 0 } ] } -************** Case 112 *************** +************** Case 108 *************** select * from t1 where c1<=(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -12735,7 +12645,7 @@ question_mask_size: 0 } ] } -************** Case 113 *************** +************** Case 109 *************** select * from t1 where c1=ANY(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -13006,7 +12916,7 @@ question_mask_size: 0 } ] } -************** Case 114 *************** +************** Case 110 *************** select * from t1 where c1=SOME(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -13277,7 +13187,7 @@ question_mask_size: 0 } ] } -************** Case 115 *************** +************** Case 111 *************** select * from t1 where c1=ALL(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -13548,7 +13458,7 @@ question_mask_size: 0 } ] } -************** Case 116 *************** +************** Case 112 *************** select * from t1 where c1=(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -13811,7 +13721,7 @@ question_mask_size: 0 } ] } -************** Case 117 *************** +************** Case 113 *************** select * from t1 where c1!=ANY(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -14082,7 +13992,7 @@ question_mask_size: 0 } ] } -************** Case 118 *************** +************** Case 114 *************** select * from t1 where c1!=SOME(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -14353,7 +14263,7 @@ question_mask_size: 0 } ] } -************** Case 119 *************** +************** Case 115 *************** select * from t1 where c1!=ALL(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -14624,7 +14534,7 @@ question_mask_size: 0 } ] } -************** Case 120 *************** +************** Case 116 *************** select * from t1 where c1!=(select c1 from t2 where c2>1); question_mask_size: 0 { @@ -14887,7 +14797,7 @@ question_mask_size: 0 } ] } -************** Case 121 *************** +************** Case 117 *************** select * from t1 where c1 in (select c1 from t2 where c2>1); question_mask_size: 0 { @@ -15150,7 +15060,7 @@ question_mask_size: 0 } ] } -************** Case 122 *************** +************** Case 118 *************** select * from t1 where c1 not in (select c1 from t2 where c2>1); question_mask_size: 0 { @@ -15413,7 +15323,7 @@ question_mask_size: 0 } ] } -************** Case 123 *************** +************** Case 119 *************** select * from t1 where exists (select c1 from t2 where c2>1); question_mask_size: 0 { @@ -15660,7 +15570,7 @@ question_mask_size: 0 } ] } -************** Case 124 *************** +************** Case 120 *************** select * from t1 where not exists (select c1 from t2 where c2>1); question_mask_size: 0 { @@ -15915,7 +15825,7 @@ question_mask_size: 0 } ] } -************** Case 125 *************** +************** Case 121 *************** select * from t1 where (select c1 from t1) like (select c2 from t2); question_mask_size: 0 { @@ -16220,7 +16130,7 @@ question_mask_size: 0 } ] } -************** Case 126 *************** +************** Case 122 *************** select * from t1 where (select c1 from t1) not like (select c2 from t2); question_mask_size: 0 { @@ -16525,7 +16435,7 @@ question_mask_size: 0 } ] } -************** Case 127 *************** +************** Case 123 *************** select * from t1 where (c1) in (select c1 from t2); question_mask_size: 0 { @@ -16750,7 +16660,7 @@ question_mask_size: 0 } ] } -************** Case 128 *************** +************** Case 124 *************** select * from t1 where (c1, c2) in (select c1, c2 from t2); question_mask_size: 0 { @@ -17023,7 +16933,7 @@ question_mask_size: 0 } ] } -************** Case 129 *************** +************** Case 125 *************** select * from t1 where ROW(c1, c2) in (select c1, c2 from t2); question_mask_size: 0 { @@ -17296,7 +17206,7 @@ question_mask_size: 0 } ] } -************** Case 130 *************** +************** Case 126 *************** set names latin1; question_mask_size: 0 { @@ -17322,7 +17232,7 @@ question_mask_size: 0 } ] } -************** Case 131 *************** +************** Case 127 *************** set names 'latin1'; question_mask_size: 0 { @@ -17348,7 +17258,7 @@ question_mask_size: 0 } ] } -************** Case 132 *************** +************** Case 128 *************** set names utf8 collate 'utf8_general_ci'; question_mask_size: 0 { @@ -17379,7 +17289,7 @@ question_mask_size: 0 } ] } -************** Case 133 *************** +************** Case 129 *************** set names utf8 collate utf8_general_ci; question_mask_size: 0 { @@ -17410,7 +17320,7 @@ question_mask_size: 0 } ] } -************** Case 134 *************** +************** Case 130 *************** set character set utf8; question_mask_size: 0 { @@ -17435,7 +17345,7 @@ question_mask_size: 0 } ] } -************** Case 135 *************** +************** Case 131 *************** set character set 'utf8'; question_mask_size: 0 { @@ -17460,7 +17370,7 @@ question_mask_size: 0 } ] } -************** Case 136 *************** +************** Case 132 *************** set charset utf8; question_mask_size: 0 { @@ -17485,7 +17395,7 @@ question_mask_size: 0 } ] } -************** Case 137 *************** +************** Case 133 *************** select _utf8 'abc', _utf8mb4 'def' collate utf8mb4_general_ci from t1 where c1 collate utf8_bin = 'xyz' collate utf8_bin; question_mask_size: 0 { @@ -17755,7 +17665,7 @@ question_mask_size: 0 } ] } -************** Case 138 *************** +************** Case 134 *************** select * from t1 where c1=?; question_mask_size: 1 { @@ -17890,7 +17800,7 @@ question_mask_size: 1 } ] } -************** Case 139 *************** +************** Case 135 *************** select * from t1 where c1>?; question_mask_size: 1 { @@ -18025,7 +17935,7 @@ question_mask_size: 1 } ] } -************** Case 140 *************** +************** Case 136 *************** select * from t1 where (select c1 from t1 where c1 = ?) not like (select c2 from t2 where c2=?); question_mask_size: 2 { @@ -18406,7 +18316,7 @@ question_mask_size: 2 } ] } -************** Case 141 *************** +************** Case 137 *************** select * from t1 join t2; question_mask_size: 0 { @@ -18545,7 +18455,7 @@ question_mask_size: 0 } ] } -************** Case 142 *************** +************** Case 138 *************** select * from t1 inner join t2; question_mask_size: 0 { @@ -18684,7 +18594,7 @@ question_mask_size: 0 } ] } -************** Case 143 *************** +************** Case 139 *************** select * from t1 cross join t2; question_mask_size: 0 { @@ -18823,7 +18733,7 @@ question_mask_size: 0 } ] } -************** Case 144 *************** +************** Case 140 *************** select * from t1 cross join t2 join t3; question_mask_size: 0 { @@ -19004,7 +18914,7 @@ question_mask_size: 0 } ] } -************** Case 145 *************** +************** Case 141 *************** select "1234"; question_mask_size: 0 { @@ -19077,7 +18987,7 @@ question_mask_size: 0 } ] } -************** Case 146 *************** +************** Case 142 *************** select '1234'; question_mask_size: 0 { @@ -19150,7 +19060,7 @@ question_mask_size: 0 } ] } -************** Case 147 *************** +************** Case 143 *************** create table test(c1 varchar(3) binary charset utf8mb4); question_mask_size: 0 { @@ -19244,7 +19154,7 @@ question_mask_size: 0 } ] } -************** Case 148 *************** +************** Case 144 *************** replace into test values(1,2); question_mask_size: 0 { @@ -19343,7 +19253,7 @@ question_mask_size: 0 } ] } -************** Case 149 *************** +************** Case 145 *************** replace ignore into test values(1,2); question_mask_size: 0 { @@ -19447,7 +19357,7 @@ question_mask_size: 0 } ] } -************** Case 150 *************** +************** Case 146 *************** insert ignore into test values(1,2); question_mask_size: 0 { @@ -19551,7 +19461,7 @@ question_mask_size: 0 } ] } -************** Case 151 *************** +************** Case 147 *************** insert ignore into test values(1,2) on duplicate key update c2 = c1 + 1; question_mask_size: 0 { @@ -19716,7 +19626,7 @@ question_mask_size: 0 } ] } -************** Case 152 *************** +************** Case 148 *************** create outline out_name on select * from t1; question_mask_size: 0 { @@ -19844,7 +19754,7 @@ question_mask_size: 0 } ] } -************** Case 153 *************** +************** Case 149 *************** create or replace outline out_name on select * from t1; question_mask_size: 0 { @@ -19977,7 +19887,7 @@ question_mask_size: 0 } ] } -************** Case 154 *************** +************** Case 150 *************** create outline out_name on select * from t1; question_mask_size: 0 { @@ -20105,7 +20015,7 @@ question_mask_size: 0 } ] } -************** Case 155 *************** +************** Case 151 *************** create outline out_name on select /*+ssssss*/* from t1; question_mask_size: 0 { @@ -20233,7 +20143,7 @@ question_mask_size: 0 } ] } -************** Case 156 *************** +************** Case 152 *************** create outline out_name on select /*+ssssss*/* from t1 to select /*+ssssss*/* from t1; question_mask_size: 0 { @@ -20446,7 +20356,7 @@ question_mask_size: 0 } ] } -************** Case 157 *************** +************** Case 153 *************** create outline out_name on select /*+ssssss*/* from t1 to select * from t1; question_mask_size: 0 { @@ -20659,7 +20569,7 @@ question_mask_size: 0 } ] } -************** Case 158 *************** +************** Case 154 *************** create outline out_name on insert /*+ssssss*/ into t1 values(1, 2) to insert /*+ssssss*/ into t1 values(1, 2); question_mask_size: 0 { @@ -20876,7 +20786,7 @@ question_mask_size: 0 } ] } -************** Case 159 *************** +************** Case 155 *************** drop outline out_name; question_mask_size: 0 { @@ -20910,7 +20820,7 @@ question_mask_size: 0 } ] } -************** Case 160 *************** +************** Case 156 *************** drop outline db_name.out_name; question_mask_size: 0 { @@ -20949,7 +20859,7 @@ question_mask_size: 0 } ] } -************** Case 161 *************** +************** Case 157 *************** create tenant tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1') set ob_tcp_invited_nodes='%'; question_mask_size: 0 { @@ -21062,7 +20972,7 @@ question_mask_size: 0 } ] } -************** Case 162 *************** +************** Case 158 *************** create tenant if not exists tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1') set ob_tcp_invited_nodes='%'; question_mask_size: 0 { @@ -21180,7 +21090,7 @@ question_mask_size: 0 } ] } -************** Case 163 *************** +************** Case 159 *************** create tenant tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1'), locality = 'auto_locality_strategy' set ob_tcp_invited_nodes='%'; question_mask_size: 0 { @@ -21308,7 +21218,7 @@ question_mask_size: 0 } ] } -************** Case 164 *************** +************** Case 160 *************** create tenant if not exists tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1'), locality = 'auto_locality_strategy' set ob_tcp_invited_nodes='%'; question_mask_size: 0 { @@ -21441,7 +21351,7 @@ question_mask_size: 0 } ] } -************** Case 165 *************** +************** Case 161 *************** create tenant tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1'), logonly_replica_num = 1 set ob_tcp_invited_nodes='%'; question_mask_size: 0 { @@ -21568,7 +21478,7 @@ question_mask_size: 0 } ] } -************** Case 166 *************** +************** Case 162 *************** create tenant if not exists tt1 replica_num = 1, primary_zone = 'zone1', resource_pool_list = ('zone1'), logonly_replica_num = 1 set ob_tcp_invited_nodes='%'; question_mask_size: 0 { @@ -21700,7 +21610,7 @@ question_mask_size: 0 } ] } -************** Case 167 *************** +************** Case 163 *************** select /*+max_concurrent(-10)*/* from t1; question_mask_size: 0 { @@ -21802,7 +21712,7 @@ question_mask_size: 0 } ] } -************** Case 168 *************** +************** Case 164 *************** select /*+max_concurrent(10)*/* from t1; question_mask_size: 0 { @@ -21920,7 +21830,7 @@ question_mask_size: 0 } ] } -************** Case 169 *************** +************** Case 165 *************** alter system refresh time_zone_info; question_mask_size: 0 { @@ -21937,25 +21847,25 @@ question_mask_size: 0 } ] } -************** Case 170 *************** +************** Case 166 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales); -************** Case 171 *************** +************** Case 167 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales where t2.id!= t1.id when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales); -************** Case 172 *************** +************** Case 168 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales where t1.id < 3 delete where t1.id < 5 when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales); -************** Case 173 *************** +************** Case 169 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales delete where t1.sales =2 when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales); -************** Case 174 *************** +************** Case 170 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales) where t2.id > 0; -************** Case 175 *************** +************** Case 171 *************** merge into targetTable t1 using sourceTable t2 on (1 = 2) when not matched then insert(t1.id, t1.sales) values(t2.id, t2.sales) where t2.id > 0; -************** Case 176 *************** +************** Case 172 *************** merge into targetTable t1 using sourceTable t2 on (t1.id = t2.id) when matched then update set t1.sales = t2.sales; -************** Case 177 *************** +************** Case 173 *************** merge into targetTable using sourceTable on (targetTable.id = sourceTable.id) when matched then update set targetTable.sales = sourceTable.sales; -************** Case 178 *************** +************** Case 174 *************** merge into targetTable using (select * from t1 ) sourceTable on (targetTable.id = sourceTable.id) when matched then update set targetTable.sales = sourceTable.sales; -************** Case 179 *************** +************** Case 175 *************** select unique(c1), c2 from t1; question_mask_size: 0 { @@ -22099,7 +22009,7 @@ question_mask_size: 0 } ] } -************** Case 180 *************** +************** Case 176 *************** select unique(c1+1), c2 from t1; question_mask_size: 0 { @@ -22257,7 +22167,7 @@ question_mask_size: 0 } ] } -************** Case 181 *************** +************** Case 177 *************** select distinct unique( max(c1)), c2 from t1; question_mask_size: 0 { @@ -22416,7 +22326,7 @@ question_mask_size: 0 } ] } -************** Case 182 *************** +************** Case 178 *************** select unique distinct( max(c1)), c2 from t1; question_mask_size: 0 { @@ -22575,10 +22485,10 @@ question_mask_size: 0 } ] } -************** Case 183 *************** +************** Case 179 *************** select unique(*) from t1; -************** Case 184 *************** -delete from t1 where c1 = 1 returning c1 + 1, c2 * 2; +************** Case 180 *************** +alter tablegroup tg2 add table t1,t2; question_mask_size: 0 { "type":"T_STMT_LIST", @@ -22587,20 +22497,82 @@ question_mask_size: 0 "str_val":"", "children": [ { - "type":"T_DELETE", + "type":"T_ALTER_TABLEGROUP", "int_val":0, "str_len":0, "str_val":"", "children": [ { - "type":"T_DELETE_TABLE_NODE", + "type":"T_IDENT", + "int_val":9223372036854775807, + "str_len":3, + "str_val":"tg2" + }, + { + "type":"T_TABLE_LIST", "int_val":9223372036854775807, "str_len":0, "str_val":"", "children": [ - { }, { - "type":"T_TABLE_REFERENCES", + "type":"T_RELATION_FACTOR", + "int_val":9223372036854775807, + "str_len":2, + "str_val":"t1", + "children": [ + { }, + { + "type":"T_IDENT", + "int_val":9223372036854775807, + "str_len":2, + "str_val":"t1" + } + ] + }, + { + "type":"T_RELATION_FACTOR", + "int_val":9223372036854775807, + "str_len":2, + "str_val":"t2", + "children": [ + { }, + { + "type":"T_IDENT", + "int_val":9223372036854775807, + "str_len":2, + "str_val":"t2" + } + ] + } + ] + } + ] + } + ] +} +************** Case 181 *************** +insert into t1 values(X''); +question_mask_size: 0 +{ + "type":"T_STMT_LIST", + "int_val":9223372036854775807, + "str_len":0, + "str_val":"", + "children": [ + { + "type":"T_INSERT", + "int_val":0, + "str_len":0, + "str_val":"", + "children": [ + { + "type":"T_SINGLE_TABLE_INSERT", + "int_val":9223372036854775807, + "str_len":0, + "str_val":"", + "children": [ + { + "type":"T_INSERT_INTO_CLAUSE", "int_val":9223372036854775807, "str_len":0, "str_val":"", @@ -22615,757 +22587,42 @@ question_mask_size: 0 "type":"T_RELATION_FACTOR", "int_val":9223372036854775807, "str_len":2, - "str_val":"T1", + "str_val":"t1", "children": [ { }, { "type":"T_IDENT", - "int_val":1, + "int_val":9223372036854775807, "str_len":2, - "str_val":"T1" - }, - { } + "str_val":"t1" + } ] }, - { }, - { }, { }, { } ] - } + }, + { } ] - } - ] - }, - { - "type":"T_WHERE_CLAUSE", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ + }, { - "type":"T_OP_EQ", + "type":"T_VALUE_LIST", "int_val":9223372036854775807, "str_len":0, "str_val":"", "children": [ { - "type":"T_OBJ_ACCESS_REF", + "type":"T_VALUE_VECTOR", "int_val":9223372036854775807, "str_len":0, "str_val":"", "children": [ { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C1" - }, - { } - ] - }, - { - "type":"T_INT", - "int_val":1, - "str_len":1, - "str_val":"1" - } - ] - }, - { } - ] - }, - { }, - { }, - { }, - { }, - { - "type":"T_RETURNING", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_PROJECT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_PROJECT_STRING", - "int_val":9223372036854775807, - "str_len":4, - "str_val":"C1+1", - "children": [ - { - "type":"T_OP_ADD", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C1" - }, - { } - ] - }, - { - "type":"T_INT", - "int_val":1, - "str_len":1, - "str_val":"1" - } - ] - } - ] - }, - { - "type":"T_PROJECT_STRING", - "int_val":9223372036854775807, - "str_len":4, - "str_val":"C2*2", - "children": [ - { - "type":"T_OP_MUL", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C2" - }, - { } - ] - }, - { - "type":"T_INT", - "int_val":2, - "str_len":1, - "str_val":"2" - } - ] - } - ] - } - ] - }, - { } - ] - }, - { } - ] - } - ] -} -************** Case 185 *************** -update t1 set c1 = 1 where c2 = 2 returning c1, c2 + 3, c3 * c4; -question_mask_size: 0 -{ - "type":"T_STMT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_UPDATE", - "int_val":0, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_TABLE_REFERENCES", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_ALIAS", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_RELATION_FACTOR", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"T1", - "children": [ - { }, - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"T1" - }, - { } - ] - }, - { }, - { }, - { }, - { } - ] - } - ] - }, - { - "type":"T_ASSIGN_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_ASSIGN_ITEM", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_COLUMN_REF", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"C1", - "children": [ - { }, - { }, - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C1" - } - ] - }, - { - "type":"T_INT", - "int_val":1, - "str_len":1, - "str_val":"1" - } - ] - } - ] - }, - { - "type":"T_WHERE_CLAUSE", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_OP_EQ", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C2" - }, - { } - ] - }, - { - "type":"T_INT", - "int_val":2, - "str_len":1, - "str_val":"2" - } - ] - }, - { } - ] - }, - { }, - { }, - { }, - { }, - { }, - { - "type":"T_RETURNING", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_PROJECT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_PROJECT_STRING", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"C1", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C1" - }, - { } - ] - } - ] - }, - { - "type":"T_PROJECT_STRING", - "int_val":9223372036854775807, - "str_len":4, - "str_val":"C2+3", - "children": [ - { - "type":"T_OP_ADD", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C2" - }, - { } - ] - }, - { - "type":"T_INT", - "int_val":3, - "str_len":1, - "str_val":"3" - } - ] - } - ] - }, - { - "type":"T_PROJECT_STRING", - "int_val":9223372036854775807, - "str_len":5, - "str_val":"C3*C4", - "children": [ - { - "type":"T_OP_MUL", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C3" - }, - { } - ] - }, - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C4" - }, - { } - ] - } - ] - } - ] - } - ] - }, - { } - ] - }, - { } - ] - } - ] -} -************** Case 186 *************** -insert into t1 values(1, 2, 3) returning c1, c2, c3; -question_mask_size: 0 -{ - "type":"T_STMT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_INSERT", - "int_val":0, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_SINGLE_TABLE_INSERT", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_INSERT_INTO_CLAUSE", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_ALIAS", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_RELATION_FACTOR", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"T1", - "children": [ - { }, - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"T1" - }, - { } - ] - }, - { }, - { }, - { }, - { } - ] - }, - { } - ] - }, - { - "type":"T_VALUE_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_VALUE_VECTOR", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_INT", - "int_val":1, - "str_len":1, - "str_val":"1" - }, - { - "type":"T_INT", - "int_val":2, - "str_len":1, - "str_val":"2" - }, - { - "type":"T_INT", - "int_val":3, - "str_len":1, - "str_val":"3" - } - ] - } - ] - }, - { - "type":"T_RETURNING", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_PROJECT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_PROJECT_STRING", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"C1", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C1" - }, - { } - ] - } - ] - }, - { - "type":"T_PROJECT_STRING", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"C2", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C2" - }, - { } - ] - } - ] - }, - { - "type":"T_PROJECT_STRING", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"C3", - "children": [ - { - "type":"T_OBJ_ACCESS_REF", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":1, - "str_len":2, - "str_val":"C3" - }, - { } - ] - } - ] - } - ] - }, - { } - ] - }, - { } - ] - }, - { - "type":"T_INSERT", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"" - }, - { }, - { } - ] - } - ] -} -************** Case 187 *************** -replace into t1 values(1, 2) returning c1, c2, c3, c4, c5, c6; -************** Case 188 *************** -alter tablegroup tg2 add table t1,t2; -question_mask_size: 0 -{ - "type":"T_STMT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_ALTER_TABLEGROUP", - "int_val":0, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_IDENT", - "int_val":9223372036854775807, - "str_len":3, - "str_val":"tg2" - }, - { - "type":"T_TABLE_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_RELATION_FACTOR", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"t1", - "children": [ - { }, - { - "type":"T_IDENT", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"t1" - } - ] - }, - { - "type":"T_RELATION_FACTOR", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"t2", - "children": [ - { }, - { - "type":"T_IDENT", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"t2" - } - ] - } - ] - } - ] - } - ] -} -************** Case 189 *************** -insert into t1 values(X''); -question_mask_size: 0 -{ - "type":"T_STMT_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_INSERT", - "int_val":0, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_SINGLE_TABLE_INSERT", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_INSERT_INTO_CLAUSE", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_ORG", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_RELATION_FACTOR", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"t1", - "children": [ - { }, - { - "type":"T_IDENT", - "int_val":9223372036854775807, - "str_len":2, - "str_val":"t1" - } - ] - }, - { }, - { } - ] - }, - { } - ] - }, - { - "type":"T_VALUE_LIST", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_VALUE_VECTOR", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"", - "children": [ - { - "type":"T_HEX_STRING", - "int_val":9223372036854775807, - "str_len":0, - "str_val":"" - } + "type":"T_HEX_STRING", + "int_val":9223372036854775807, + "str_len":0, + "str_val":"" + } ] } ] @@ -23386,7 +22643,7 @@ question_mask_size: 0 } ] } -************** Case 190 *************** +************** Case 182 *************** create table t1(`thedate` date NOT NULL COMMENT '日期'); question_mask_size: 0 { @@ -23492,7 +22749,7 @@ question_mask_size: 0 } ] } -************** Case 191 *************** +************** Case 183 *************** alter system bootstrap REGION 'sys_region' ZONE 'zone1' SERVER '10.101.74.122:41425'; question_mask_size: 0 { diff --git a/unittest/sql/parser/test_parser.test b/unittest/sql/parser/test_parser.test index b9ed5198b0d0cdfe7cfdcf6c9a39501e2a927dcd..501818786a2a68dbede7b6416d17419666ce7581 100644 --- a/unittest/sql/parser/test_parser.test +++ b/unittest/sql/parser/test_parser.test @@ -20,11 +20,11 @@ commit; commit/*hint+commit*/; commit work; commit/*hint+commit work*/ work; ---sql_mode oracle -commit comment 'comment transaction commit'; -commit work comment 'comment txn commit work'; -commit/*hint+commit tx hint*/ comment 'comment + hint'; -commit/*hint+commit tx work hint*/ work comment 'comment + hint'; +#--sql_mode oracle +#commit comment 'comment transaction commit'; +#commit work comment 'comment txn commit work'; +#commit/*hint+commit tx hint*/ comment 'comment + hint'; +#commit/*hint+commit tx work hint*/ work comment 'comment + hint'; --sql_mode mysql rollback; rollback/*hint+rollback*/; @@ -289,12 +289,12 @@ select unique distinct( max(c1)), c2 from t1; select unique(*) from t1; ########################## test for returning ################################### ---sql_mode oracle -delete from t1 where c1 = 1 returning c1 + 1, c2 * 2; -update t1 set c1 = 1 where c2 = 2 returning c1, c2 + 3, c3 * c4; -insert into t1 values(1, 2, 3) returning c1, c2, c3; ---error 5001 -replace into t1 values(1, 2) returning c1, c2, c3, c4, c5, c6; +#--sql_mode oracle +#delete from t1 where c1 = 1 returning c1 + 1, c2 * 2; +#update t1 set c1 = 1 where c2 = 2 returning c1, c2 + 3, c3 * c4; +#insert into t1 values(1, 2, 3) returning c1, c2, c3; +#--error 5001 +#replace into t1 values(1, 2) returning c1, c2, c3, c4, c5, c6; ############# tablegroup ################## --sql_mode mysql alter tablegroup tg2 add table t1,t2;