From 6c24007cd3dd502cd5982ecad686f59c55da304d Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 24 Jul 2016 23:33:06 +0200 Subject: [PATCH] Maybe the provided column name is reserved SQL keyword hence we protect the column name by surrounding it with ". --- database/db_utils.anubis | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/db_utils.anubis b/database/db_utils.anubis index f995e8a..5d4f521 100644 --- a/database/db_utils.anubis +++ b/database/db_utils.anubis @@ -271,7 +271,7 @@ public define (List(SQLite3Bind), String) [] then (so_far, join(", ",clause)), [ h . t ] then if h is field(column, bind) then - make_clause_and_binds(t, [bind . so_far], [column+" = :v_"+column . clause]) + make_clause_and_binds(t, [bind . so_far], ["\""+column+"\" = :v_"+column . clause]) }. -- libgit2 0.21.4