aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-11 17:37:05 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-11 17:37:05 -0400
commit073d7be7ec72e3fa9f16491e5b943ef6cb87fd63 (patch)
tree3ed3ed0b40f39e4673979569f9aed285f7587212
parente80f6438c22cbaf07a70962f321eb168a303e323 (diff)
downloaddeduper-073d7be7ec72e3fa9f16491e5b943ef6cb87fd63.tar.xz
Somehow had old table names left around.
-rw-r--r--signature_db.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/signature_db.cpp b/signature_db.cpp
index db2d645..1534ee6 100644
--- a/signature_db.cpp
+++ b/signature_db.cpp
@@ -65,7 +65,7 @@ void signature_db::put_signature(size_t id, const fs::path &path, const signatur
{
sqlite3_stmt *st;
std::string sigs = sig.to_string();
- sqlite3_prepare_v2(p->db, "insert into signatures (id, path, signature) values(?, ?, ?);", -1, &st, 0);
+ sqlite3_prepare_v2(p->db, "insert into images (id, path, signature) values(?, ?, ?);", -1, &st, 0);
sqlite3_bind_int(st, 1, id);
#if PATH_VALSIZE == 2
sqlite3_bind_text16(st, 2, path.c_str(), -1, nullptr);
@@ -80,7 +80,7 @@ void signature_db::put_signature(size_t id, const fs::path &path, const signatur
std::pair<fs::path, signature> signature_db::get_signature(size_t id)
{
sqlite3_stmt *st;
- sqlite3_prepare_v2(p->db, "select path, signature from signatures where id = ?;", -1, &st, 0);
+ sqlite3_prepare_v2(p->db, "select path, signature from images where id = ?;", -1, &st, 0);
sqlite3_bind_int(st, 1, id);
int rr = sqlite3_step(st);
if (rr == SQLITE_ROW)