From a433f06530d1d174da7b17fbaad75635e052c1f0 Mon Sep 17 00:00:00 2001 From: gardners Date: Tue, 4 Dec 2012 06:27:39 +1030 Subject: [PATCH] fixed typo in updated DELETE statement. --- rhizome_database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhizome_database.c b/rhizome_database.c index 35dfe7a2..3e703ff2 100644 --- a/rhizome_database.c +++ b/rhizome_database.c @@ -951,7 +951,7 @@ int64_t rhizome_database_create_blob_for(const char *hashhex,int64_t fileLength, { /* Okay, so there are no records that match, but we should delete any half-baked record (with datavalid=0) so that the insert below doesn't fail. Don't worry about the return result, since it might not delete any records. */ - sqlite_exec_void("DELETE FROM FILES WHERE in='%s' AND datavalid=0;",hashhex); + sqlite_exec_void("DELETE FROM FILES WHERE id='%s' AND datavalid=0;",hashhex); /* INSERT INTO FILES(id as text, data blob, length integer, highestpriority integer). BUT, we have to do this incrementally so that we can handle blobs larger than available memory.