提交 65169b0a 编写于 作者: S slguan

scripts

上级 ccb99d92
......@@ -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
......
......@@ -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
......
......@@ -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]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册