diff --git a/db/src/books/page.rs b/db/src/books/page.rs index 72d8de94c..aa1717651 100644 --- a/db/src/books/page.rs +++ b/db/src/books/page.rs @@ -378,7 +378,7 @@ fn cursor_from_row(row: &sqlx::sqlite::SqliteRow, sort: SortKey) -> PageCursor { } /// `?, ?, …` of length `n`. -fn placeholders(n: usize) -> String { +pub(super) fn placeholders(n: usize) -> String { std::iter::repeat_n("?", n).collect::>().join(", ") } diff --git a/db/src/books/projection.rs b/db/src/books/projection.rs index b4c0b4ed3..9e8c3ec8e 100644 --- a/db/src/books/projection.rs +++ b/db/src/books/projection.rs @@ -113,7 +113,7 @@ macro_rules! book_columns_body { ", // Projected on every listing, not just the Recently Interacted one: // the mobile offline replica sorts its cached rows client-side, and - // a row whose key is missing falls back to the id tiebreak and + // a row whose key is missing falls back to the title tiebreak and // scrambles the server order. interacted_at_iso_sql!(), " AS last_interacted_at