Skip to content

Commit

Permalink
I guess we keep this struct in 2 places
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Dec 21, 2023
1 parent a176f6d commit 2818492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/ext-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ crsql_ExtData *crsql_newExtData(sqlite3 *db, unsigned char *siteIdBuffer) {
return 0;
}

// default to not tie-breaking
pExtData->tieBreakSameColValue = 0;

return pExtData;
}

Expand Down
2 changes: 2 additions & 0 deletions core/src/ext-data.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ struct crsql_ExtData {
sqlite3_stmt *pSetSiteIdOrdinalStmt;
sqlite3_stmt *pSelectSiteIdOrdinalStmt;
sqlite3_stmt *pSelectClockTablesStmt;

int tieBreakSameColValue;
};

crsql_ExtData *crsql_newExtData(sqlite3 *db, unsigned char *siteIdBuffer);
Expand Down

0 comments on commit 2818492

Please sign in to comment.