mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 10:50:28 +00:00
Update SQLite changeset Lua API to use OMIT for conflicting changes
This commit is contained in:
parent
6244e76177
commit
1a8732f25f
1 changed files with 2 additions and 2 deletions
|
@ -1928,8 +1928,8 @@ static int db_changeset_conflict_callback(
|
|||
int eConflict, /* DATA, MISSING, CONFLICT, CONSTRAINT */
|
||||
sqlite3_changeset_iter *p /* Handle describing change and conflict */
|
||||
) {
|
||||
// return REPLACE code if no conflict callback is provided
|
||||
if (changeset_conflict_cb == LUA_NOREF) return SQLITE_CHANGESET_REPLACE;
|
||||
// return default code if no conflict callback is provided
|
||||
if (changeset_conflict_cb == LUA_NOREF) return SQLITE_CHANGESET_OMIT;
|
||||
sdb *db = (sdb*)user;
|
||||
lua_State *L = db->L;
|
||||
int top = lua_gettop(L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue