From d6b3d1818a79072e06b1b81cabaea94804c76e2b Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Thu, 16 Jan 2020 10:55:05 -0500 Subject: [PATCH] Booleans should be stored as their int value, not string value. --- db/src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/src/db.rs b/db/src/db.rs index 9c9b7ae6..1341a1a9 100644 --- a/db/src/db.rs +++ b/db/src/db.rs @@ -326,7 +326,7 @@ fn create_current_partition_view(conn: &rusqlite::Connection) -> Result<()> { pub fn create_current_version(conn: &mut rusqlite::Connection) -> Result { let (tx, mut db) = create_empty_current_version(conn)?; - // TODO: think more carefully about allocating new parts and bitmasking part ranges. + // TODO: think more carefully about allocating new parts and bit-masking part ranges. // TODO: install these using bootstrap assertions. It's tricky because the part ranges are implicit. // TODO: one insert, chunk into 999/3 sections, for safety. // This is necessary: `transact` will only UPDATE parts, not INSERT them if they're missing. @@ -338,7 +338,7 @@ pub fn create_current_version(conn: &mut rusqlite::Connection) -> Result { part, &partition.start.to_string(), &partition.end.to_string(), - &partition.allow_excision.to_string(), + &(partition.allow_excision as i8).to_string(), ], )?; }