mirror of
https://gitee.com/openharmony/distributeddatamgr_relational_store
synced 2025-02-17 00:39:02 +00:00
内存数据库checkout和limitwal去除
Signed-off-by: zhangdi <zhangdi126@huawei.com>
This commit is contained in:
parent
5a70c4cdc9
commit
8389090150
@ -967,6 +967,7 @@ int SqliteConnection::CleanDirtyData(const std::string &table, uint64_t cursor)
|
||||
|
||||
int SqliteConnection::TryCheckPoint(bool timeout)
|
||||
{
|
||||
|
||||
if (!isWriter_) {
|
||||
return E_NOT_SUPPORT;
|
||||
}
|
||||
|
@ -160,14 +160,9 @@ int SqliteStatement::BindArgs(const std::vector<std::reference_wrapper<ValueObje
|
||||
bound_ = true;
|
||||
int index = 1;
|
||||
for (auto &arg : bindArgs) {
|
||||
auto valueType = arg.get().value.index();
|
||||
if (valueType < ValueObject::TYPE_NULL || valueType >= ValueObject::TYPE_BUTT) {
|
||||
LOG_ERROR("index is out of range, index is %{public}zu", valueType);
|
||||
return E_INVALID_ARGS;
|
||||
}
|
||||
auto action = ACTIONS[valueType];
|
||||
auto action = ACTIONS[arg.get().value.index()];
|
||||
if (action == nullptr) {
|
||||
LOG_ERROR("not support the type %{public}zu", valueType);
|
||||
LOG_ERROR("not support the type %{public}zu", arg.get().value.index());
|
||||
return E_INVALID_ARGS;
|
||||
}
|
||||
auto errCode = action(stmt_, index, arg.get().value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user