scripts
This commit is contained in:
parent
ccb99d9247
commit
65169b0a82
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue