Skip to content

Bug: SqLite: Replace the 'INSERT OR REPLACE' with 'INSERT/UPDATE' statement. #558

@mikependon

Description

@mikependon

Currently, the SqLite is using the INSERT OR REPLACE method/operation for MERGE operation. This does not do the expected operation. The purpose of MERGE is to update the existing row if present, otherwise insert a new one. The operation will be based on the passed qualifier fields. In the case of INSERT OR REPLACE, it is setting the other fields to NULL if that is not a part of the query expressions.

An issue has been replicated and proven on this small project.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdeployedFeature or bug is deployed at the current releasefixedThe bug, issue, incident has been fixed.priorityTop priority feature or things to dotodoThings to be done in the future

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions