diff --git a/tests/script/general/user/user_create.sim b/tests/script/general/user/user_create.sim index 8f0d32e7ccf429a4db7a8a937142895fbf7d28ff..4b81313695ad9b51e040ae2943f148f373c49372 100644 --- a/tests/script/general/user/user_create.sim +++ b/tests/script/general/user/user_create.sim @@ -49,19 +49,22 @@ sleep 2000 sql alter user read privilege read sql show users -if $data1_read != read then +print $data1_read +if $data1_read != readable then return -1 endi sql_error alter user read privilege super sql show users -if $data1_read != read then +print $data1_read +if $data1_read != readable then return -1 endi sql alter user read privilege write sql show users -if $data1_read != write then +print $data1_read +if $data1_read != writable then return -1 endi diff --git a/tests/script/unique/account/user_create.sim b/tests/script/unique/account/user_create.sim index b22cefcf21a1a1f8048b4a038d1c51771307ee03..bc4a8f6e8e0a81f87f88c553ee3a02e18065c794 100644 --- a/tests/script/unique/account/user_create.sim +++ b/tests/script/unique/account/user_create.sim @@ -49,19 +49,21 @@ sleep 2000 sql alter user read privilege read sql show users -if $data1_read != read then +print $data1_read +if $data1_read != readable then return -1 endi sql_error alter user read privilege super sql show users -if $data1_read != read then +print $data1_read +if $data1_read != readable then return -1 endi sql alter user read privilege write sql show users -if $data1_read != write then +if $data1_read != writable then return -1 endi diff --git a/tests/tsim/src/simExe.c b/tests/tsim/src/simExe.c index 26291ba992346b595314d3e017272809aad3d62e..aea295c563cef60b82444d31b38872a9839ce190 100644 --- a/tests/tsim/src/simExe.c +++ b/tests/tsim/src/simExe.c @@ -733,6 +733,7 @@ bool simExecuteNativeSqlCommand(SScript *script, char *rest, bool isSlow) { break; case TSDB_DATA_TYPE_BINARY: case TSDB_DATA_TYPE_NCHAR: + memset(value, 0, MAX_QUERY_VALUE_LEN); memcpy(value, row[i], fields[i].bytes); value[fields[i].bytes] = 0; // snprintf(value, fields[i].bytes, "%s", (char *)row[i]);