From 161388f8b010f3600470c3de192314711ebe585f Mon Sep 17 00:00:00 2001 From: xieqiongyang Date: Tue, 18 Jul 2023 12:01:58 +0000 Subject: [PATCH] fix crash Signed-off-by: xieqiongyang Change-Id: Ic8ba70894523371083abd0025cd9287d074e2319 --- .../actsfwkdataaccessortest/src/main/js/TestDataAbility/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/TestDataAbility/data.js b/ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/TestDataAbility/data.js index 416899842..72896e79c 100755 --- a/ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/TestDataAbility/data.js +++ b/ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/TestDataAbility/data.js @@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb' const TABLE_NAME = 'book' const STORE_CONFIG = {name: 'book.db'} const SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS book' + - '(id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, age INTEGER, introduction TEXT NOT NULL)' + '(contact_id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, age INTEGER, introduction TEXT NOT NULL, salary FLOAT)' let rdbStore = undefined const TAG = 'ACTS_ DataAbility.data' const context = featureAbility.getContext() -- GitLab