提交 fa051305 编写于 作者: X xieqiongyang

fix fwkdataaccessor cppcrash

Signed-off-by: Nxieqiongyang <xieqiongyang@huawei.com>
Change-Id: I9bda76b4e987de8712c25563433f7a0275284c6b
上级 22dbef13
......@@ -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: any = undefined
const TAG = 'ACTS_ DataAbility.data'
const context = featureAbility.getContext()
......
......@@ -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: any = undefined
const TAG = 'ACTS_ DataAbility.data'
const context = featureAbility.getContext()
......
......@@ -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: any = undefined
const TAG = 'ACTS_ DataAbility.data'
const context = featureAbility.getContext()
......
......@@ -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()
......
......@@ -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()
......
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册