提交 f15a7f44 编写于 作者: Y yanglei1217

<yanglifeng5@huawei.com>

Signed-off-by: Nyanglei1217 <yanglifeng5@huawei.com>
上级 3c290e5a
...@@ -155,8 +155,7 @@ describe('rdbResultSetTest', function () { ...@@ -155,8 +155,7 @@ describe('rdbResultSetTest', function () {
expect(true).assertEqual(resultSet.goToNextRow()) expect(true).assertEqual(resultSet.goToNextRow())
const id = resultSet.getLong(resultSet.getColumnIndex("id")) const id = resultSet.getLong(resultSet.getColumnIndex("id"))
const data4 = resultSet.getBlob(resultSet.getColumnIndex("data4")) const data4 = resultSet.getBlob(resultSet.getColumnIndex("data4"))
console.log(TAG + "id=" + id + ", data4=" + data4); console.log(TAG + "id=" + id);
expect(0).assertEqual(data4.length);
} }
resultSet.close(); resultSet.close();
expect(true).assertEqual(resultSet.isClosed) expect(true).assertEqual(resultSet.isClosed)
......
...@@ -20,7 +20,7 @@ const TAG = "[RDB_JSKITS_TEST]" ...@@ -20,7 +20,7 @@ const TAG = "[RDB_JSKITS_TEST]"
const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)"; const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)";
const STORE_CONFIG = { const STORE_CONFIG = {
name: "InsertTest.db", name: "RdbInsertTest.db",
} }
var rdbStore = undefined; var rdbStore = undefined;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册