未验证 提交 0c085337 编写于 作者: O openharmony_ci 提交者: Gitee

!9421 fix fwkdataaccessor cppcrash

Merge pull request !9421 from xieqiongyang/master
...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb' ...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb'
const TABLE_NAME = 'book' const TABLE_NAME = 'book'
const STORE_CONFIG = {name: 'book.db'} const STORE_CONFIG = {name: 'book.db'}
const SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS book' + 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 let rdbStore: any = undefined
const TAG = 'ACTS_ DataAbility.data' const TAG = 'ACTS_ DataAbility.data'
const context = featureAbility.getContext() const context = featureAbility.getContext()
......
...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb' ...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb'
const TABLE_NAME = 'book' const TABLE_NAME = 'book'
const STORE_CONFIG = {name: 'book.db'} const STORE_CONFIG = {name: 'book.db'}
const SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS book' + 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 let rdbStore: any = undefined
const TAG = 'ACTS_ DataAbility.data' const TAG = 'ACTS_ DataAbility.data'
const context = featureAbility.getContext() const context = featureAbility.getContext()
......
...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb' ...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb'
const TABLE_NAME = 'book' const TABLE_NAME = 'book'
const STORE_CONFIG = {name: 'book.db'} const STORE_CONFIG = {name: 'book.db'}
const SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS book' + 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 let rdbStore: any = undefined
const TAG = 'ACTS_ DataAbility.data' const TAG = 'ACTS_ DataAbility.data'
const context = featureAbility.getContext() const context = featureAbility.getContext()
......
...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb' ...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb'
const TABLE_NAME = 'book' const TABLE_NAME = 'book'
const STORE_CONFIG = {name: 'book.db'} const STORE_CONFIG = {name: 'book.db'}
const SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS book' + 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 let rdbStore = undefined
const TAG = 'ACTS_ DataAbility.data' const TAG = 'ACTS_ DataAbility.data'
const context = featureAbility.getContext() const context = featureAbility.getContext()
......
...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb' ...@@ -20,7 +20,7 @@ import dataRdb from '@ohos.data.rdb'
const TABLE_NAME = 'book' const TABLE_NAME = 'book'
const STORE_CONFIG = {name: 'book.db'} const STORE_CONFIG = {name: 'book.db'}
const SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS book' + 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 let rdbStore = undefined
const TAG = 'ACTS_ DataAbility.data' const TAG = 'ACTS_ DataAbility.data'
const context = featureAbility.getContext() const context = featureAbility.getContext()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册