Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
596c86dd
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
596c86dd
编写于
8月 02, 2022
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix case issue
上级
df872728
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
45 addition
and
44 deletion
+45
-44
source/client/src/clientSml.c
source/client/src/clientSml.c
+2
-1
source/dnode/mnode/impl/test/db/db.cpp
source/dnode/mnode/impl/test/db/db.cpp
+7
-7
source/dnode/mnode/impl/test/func/func.cpp
source/dnode/mnode/impl/test/func/func.cpp
+5
-5
source/dnode/mnode/impl/test/profile/profile.cpp
source/dnode/mnode/impl/test/profile/profile.cpp
+2
-2
source/dnode/mnode/impl/test/show/show.cpp
source/dnode/mnode/impl/test/show/show.cpp
+2
-2
source/dnode/mnode/impl/test/sma/sma.cpp
source/dnode/mnode/impl/test/sma/sma.cpp
+2
-2
source/dnode/mnode/impl/test/stb/stb.cpp
source/dnode/mnode/impl/test/stb/stb.cpp
+11
-11
source/dnode/mnode/impl/test/user/user.cpp
source/dnode/mnode/impl/test/user/user.cpp
+12
-12
source/libs/parser/test/parSelectTest.cpp
source/libs/parser/test/parSelectTest.cpp
+1
-1
source/libs/planner/test/planSysTbTest.cpp
source/libs/planner/test/planSysTbTest.cpp
+1
-1
未找到文件。
source/client/src/clientSml.c
浏览文件 @
596c86dd
...
...
@@ -420,7 +420,8 @@ static int32_t smlSendMetaMsg(SSmlHandle *info, SName *pName, SSmlSTableMeta *s
}
tSerializeSMCreateStbReq
(
pCmdMsg
.
pMsg
,
pCmdMsg
.
msgLen
,
&
pReq
);
SQuery
pQuery
=
{
0
};
SQuery
pQuery
;
memset
(
&
pQuery
,
0
,
sizeof
(
pQuery
));
pQuery
.
execMode
=
QUERY_EXEC_MODE_RPC
;
pQuery
.
pCmdMsg
=
&
pCmdMsg
;
pQuery
.
msgType
=
pQuery
.
pCmdMsg
->
msgType
;
...
...
source/dnode/mnode/impl/test/db/db.cpp
浏览文件 @
596c86dd
...
...
@@ -26,7 +26,7 @@ class MndTestDb : public ::testing::Test {
Testbase
MndTestDb
::
test
;
TEST_F
(
MndTestDb
,
01
_ShowDb
)
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
user
_databases"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
ins
_databases"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
}
...
...
@@ -64,10 +64,10 @@ TEST_F(MndTestDb, 02_Create_Alter_Drop_Db) {
ASSERT_EQ
(
pRsp
->
code
,
0
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
user
_databases"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
ins
_databases"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
3
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_VGROUP
,
"vgroups"
,
"1.d1"
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_VGROUP
,
"
ins_
vgroups"
,
"1.d1"
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
{
...
...
@@ -96,13 +96,13 @@ TEST_F(MndTestDb, 02_Create_Alter_Drop_Db) {
ASSERT_EQ
(
pRsp
->
code
,
TSDB_CODE_OPS_NOT_SUPPORT
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
user
_databases"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
ins
_databases"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
3
);
// restart
test
.
Restart
();
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
user
_databases"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
ins
_databases"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
3
);
{
...
...
@@ -122,7 +122,7 @@ TEST_F(MndTestDb, 02_Create_Alter_Drop_Db) {
EXPECT_STREQ
(
dropdbRsp
.
db
,
"1.d1"
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
user
_databases"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
ins
_databases"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
}
...
...
@@ -160,7 +160,7 @@ TEST_F(MndTestDb, 03_Create_Use_Restart_Use_Db) {
ASSERT_EQ
(
pRsp
->
code
,
0
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
user
_databases"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_DB
,
"
ins
_databases"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
3
);
uint64_t
d2_uid
=
0
;
...
...
source/dnode/mnode/impl/test/func/func.cpp
浏览文件 @
596c86dd
...
...
@@ -46,7 +46,7 @@ void MndTestFunc::SetBufSize(SCreateFuncReq* pReq, int32_t size) {
}
TEST_F
(
MndTestFunc
,
01
_Show_Func
)
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
user
_functions"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
ins
_functions"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
0
);
}
...
...
@@ -159,7 +159,7 @@ TEST_F(MndTestFunc, 02_Create_Func) {
}
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
user
_functions"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
ins
_functions"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -270,7 +270,7 @@ TEST_F(MndTestFunc, 03_Retrieve_Func) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
user
_functions"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
ins
_functions"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
}
...
...
@@ -435,13 +435,13 @@ TEST_F(MndTestFunc, 04_Drop_Func) {
ASSERT_EQ
(
pRsp
->
code
,
0
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
user
_functions"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
ins
_functions"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
// restart
test
.
Restart
();
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
user
_functions"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_FUNC
,
"
ins
_functions"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
source/dnode/mnode/impl/test/profile/profile.cpp
浏览文件 @
596c86dd
...
...
@@ -87,7 +87,7 @@ TEST_F(MndTestProfile, 02_ConnectMsg_InvalidDB) {
}
TEST_F
(
MndTestProfile
,
03
_ConnectMsg_Show
)
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_CONNS
,
"connections"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_CONNS
,
"
perf_
connections"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -307,6 +307,6 @@ TEST_F(MndTestProfile, 08_KillQueryMsg_InvalidConn) {
}
TEST_F
(
MndTestProfile
,
09
_KillQueryMsg
)
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_QUERIES
,
"queries"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_QUERIES
,
"
perf_
queries"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
0
);
}
source/dnode/mnode/impl/test/show/show.cpp
浏览文件 @
596c86dd
...
...
@@ -73,11 +73,11 @@ TEST_F(MndTestShow, 03_ShowMsg_Conn) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_CONNS
,
"connections"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_CONNS
,
"
perf_
connections"
,
""
);
// EXPECT_EQ(test.GetShowRows(), 1);
}
TEST_F
(
MndTestShow
,
04
_ShowMsg_Cluster
)
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_CLUSTER
,
"cluster"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_CLUSTER
,
"
ins_
cluster"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
source/dnode/mnode/impl/test/sma/sma.cpp
浏览文件 @
596c86dd
...
...
@@ -259,7 +259,7 @@ TEST_F(MndTestSma, 02_Create_Show_Meta_Drop_Restart_BSma) {
pReq
=
BuildCreateBSmaStbReq
(
stbname
,
&
contLen
);
pRsp
=
test
.
SendReq
(
TDMT_MND_CREATE_STB
,
pReq
,
contLen
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -275,7 +275,7 @@ TEST_F(MndTestSma, 02_Create_Show_Meta_Drop_Restart_BSma) {
pReq
=
BuildDropStbReq
(
stbname
,
&
contLen
);
pRsp
=
test
.
SendReq
(
TDMT_MND_DROP_STB
,
pReq
,
contLen
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
0
);
}
...
...
source/dnode/mnode/impl/test/stb/stb.cpp
浏览文件 @
596c86dd
...
...
@@ -313,7 +313,7 @@ TEST_F(MndTestStb, 01_Create_Show_Meta_Drop_Restart_Stb) {
}
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -394,7 +394,7 @@ TEST_F(MndTestStb, 01_Create_Show_Meta_Drop_Restart_Stb) {
test
.
Restart
();
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -412,7 +412,7 @@ TEST_F(MndTestStb, 01_Create_Show_Meta_Drop_Restart_Stb) {
}
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
0
);
}
...
...
@@ -474,7 +474,7 @@ TEST_F(MndTestStb, 02_Alter_Stb_AddTag) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
}
{
...
...
@@ -514,7 +514,7 @@ TEST_F(MndTestStb, 03_Alter_Stb_DropTag) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -578,7 +578,7 @@ TEST_F(MndTestStb, 04_Alter_Stb_AlterTagName) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -630,7 +630,7 @@ TEST_F(MndTestStb, 05_Alter_Stb_AlterTagBytes) {
SRpcMsg
*
pRsp
=
test
.
SendReq
(
TDMT_MND_ALTER_STB
,
pReq
,
contLen
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -691,7 +691,7 @@ TEST_F(MndTestStb, 06_Alter_Stb_AddColumn) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -751,7 +751,7 @@ TEST_F(MndTestStb, 07_Alter_Stb_DropColumn) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -809,7 +809,7 @@ TEST_F(MndTestStb, 08_Alter_Stb_AlterTagBytes) {
SRpcMsg
*
pRsp
=
test
.
SendReq
(
TDMT_MND_ALTER_STB
,
pReq
,
contLen
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -818,7 +818,7 @@ TEST_F(MndTestStb, 08_Alter_Stb_AlterTagBytes) {
SRpcMsg
*
pRsp
=
test
.
SendReq
(
TDMT_MND_ALTER_STB
,
pReq
,
contLen
);
ASSERT_EQ
(
pRsp
->
code
,
TSDB_CODE_MND_COLUMN_NOT_EXIST
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
user
_stables"
,
dbname
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_STB
,
"
ins
_stables"
,
dbname
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
source/dnode/mnode/impl/test/user/user.cpp
浏览文件 @
596c86dd
...
...
@@ -26,7 +26,7 @@ class MndTestUser : public ::testing::Test {
Testbase
MndTestUser
::
test
;
TEST_F
(
MndTestUser
,
01
_Show_User
)
{
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -94,7 +94,7 @@ TEST_F(MndTestUser, 02_Create_User) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
}
...
...
@@ -110,7 +110,7 @@ TEST_F(MndTestUser, 02_Create_User) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -130,7 +130,7 @@ TEST_F(MndTestUser, 02_Create_User) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
}
...
...
@@ -146,7 +146,7 @@ TEST_F(MndTestUser, 02_Create_User) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
}
...
...
@@ -168,7 +168,7 @@ TEST_F(MndTestUser, 03_Alter_User) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
}
...
...
@@ -414,7 +414,7 @@ TEST_F(MndTestUser, 03_Alter_User) {
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
0
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
}
...
...
@@ -475,7 +475,7 @@ TEST_F(MndTestUser, 05_Drop_User) {
ASSERT_EQ
(
pRsp
->
code
,
0
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
}
...
...
@@ -512,7 +512,7 @@ TEST_F(MndTestUser, 06_Create_Drop_Alter_User) {
ASSERT_EQ
(
pRsp
->
code
,
0
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
3
);
{
...
...
@@ -530,7 +530,7 @@ TEST_F(MndTestUser, 06_Create_Drop_Alter_User) {
ASSERT_EQ
(
pRsp
->
code
,
0
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
3
);
{
SDropUserReq
dropReq
=
{
0
};
...
...
@@ -545,13 +545,13 @@ TEST_F(MndTestUser, 06_Create_Drop_Alter_User) {
ASSERT_EQ
(
pRsp
->
code
,
0
);
}
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
// restart
test
.
Restart
();
taosMsleep
(
1000
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
user
_users"
,
""
);
test
.
SendShowReq
(
TSDB_MGMT_TABLE_USER
,
"
ins
_users"
,
""
);
EXPECT_EQ
(
test
.
GetShowRows
(),
2
);
}
source/libs/parser/test/parSelectTest.cpp
浏览文件 @
596c86dd
...
...
@@ -426,7 +426,7 @@ TEST_F(ParserSelectTest, setOperatorSemanticCheck) {
TEST_F
(
ParserSelectTest
,
informationSchema
)
{
useDb
(
"root"
,
"test"
);
run
(
"SELECT * FROM information_schema.
user
_databases WHERE name = 'information_schema'"
);
run
(
"SELECT * FROM information_schema.
ins
_databases WHERE name = 'information_schema'"
);
}
TEST_F
(
ParserSelectTest
,
withoutFrom
)
{
...
...
source/libs/planner/test/planSysTbTest.cpp
浏览文件 @
596c86dd
...
...
@@ -30,5 +30,5 @@ TEST_F(PlanSysTableTest, show) {
TEST_F
(
PlanSysTableTest
,
informationSchema
)
{
useDb
(
"root"
,
"information_schema"
);
run
(
"SELECT * FROM information_schema.
user
_databases WHERE name = 'information_schema'"
);
run
(
"SELECT * FROM information_schema.
ins
_databases WHERE name = 'information_schema'"
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录