Signed-off-by: wuxiaodan <wuxiaodan5@huawei-partners.com>
This commit is contained in:
wuxiaodan 2024-04-26 15:15:40 +08:00
parent 73c29f4daf
commit 1403ef43fc
6 changed files with 10 additions and 10 deletions

View File

@ -4463,7 +4463,7 @@ export default function kvSyncTestS1() {
let name = new factory.FieldNode('name');
name.type = factory.ValueType.INTEGER;
name.nullable = false;
name.default = 0;
name.default = '0';
let schema = new factory.Schema();
schema.root.appendChild(name);
@ -4562,7 +4562,7 @@ export default function kvSyncTestS1() {
let name = new factory.FieldNode('name');
name.type = factory.ValueType.INTEGER;
name.nullable = false;
name.default = 0;
name.default = '0';
let schema = new factory.Schema();
schema.root.appendChild(name);

View File

@ -4474,7 +4474,7 @@ export default function kvSyncTestS1Ets() {
let name: factory.FieldNode = new factory.FieldNode('name');
name.type = factory.ValueType.INTEGER;
name.nullable = false;
name.default = "str";
name.default = '0';
let schema = new factory.Schema();
schema.root.appendChild(name);
@ -4573,7 +4573,7 @@ export default function kvSyncTestS1Ets() {
let name = new factory.FieldNode('name');
name.type = factory.ValueType.INTEGER;
name.nullable = false;
name.default = "str";
name.default = '0';
let schema = new factory.Schema();
schema.root.appendChild(name);

View File

@ -133,9 +133,9 @@ export default class RemoteHelper{
// To avoid unknown errors, it is recommended to pass in only values of string type
// If insert data successful,it will return true, otherwise it will return errInfo
console.info(logTag + "_methodName is kvPut");
console.info(logTag + "_methodName is String(value)" + String(value));
let message = new ApiMessage("openHarmony","testApi","kvPut"," ",
["string",valueType,"string"],[String(key),value.toString(),String(valueType)]," ");
console.info(logTag + " test key is: " + key + " value is " + value.toString())
["string",valueType,"string"],[String(key),String(value),String(valueType)]," ");
let resGetReq = await this.getReq(message);
return resGetReq;
}

View File

@ -123,7 +123,7 @@ export default class TestApi{
let name = new disData.FieldNode('name');
name.type = disData.ValueType.INTEGER;
name.nullable = false;
name.default = "str";
name.default = '0';
let schema = new disData.Schema();
schema.root.appendChild(name);

View File

@ -133,9 +133,9 @@ export default class RemoteHelper{
// To avoid unknown errors, it is recommended to pass in only values of string type
// If insert data successful,it will return true, otherwise it will return errInfo
console.info(logTag + "_methodName is kvPut");
console.info(logTag + "_methodName is String(value)" + String(value));
let message = new ApiMessage("openHarmony","testApi","kvPut"," ",
["string",valueType,"string"],[String(key),value.toString(),String(valueType)]," ");
console.info(logTag + " test key is: " + key + " value is " + value.toString())
["string",valueType,"string"],[String(key),String(value),String(valueType)]," ");
let resGetReq = await this.getReq(message);
return resGetReq;
}

View File

@ -127,7 +127,7 @@ export default class TestApi{
let name = new disData.FieldNode('name');
name.type = disData.ValueType.INTEGER;
name.nullable = false;
name.default = 0;
name.default = '0';
let schema = new disData.Schema();
schema.root.appendChild(name);