Commit 6c24007cd3dd502cd5982ecad686f59c55da304d

Authored by totoro
1 parent 6c7ef284

Maybe the provided column name is reserved SQL keyword hence we protect the colu…

…mn name by surrounding it with ".
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
database/db_utils.anubis
@@ -271,7 +271,7 @@ public define (List(SQLite3Bind), String) @@ -271,7 +271,7 @@ public define (List(SQLite3Bind), String)
271 [] then (so_far, join(", ",clause)), 271 [] then (so_far, join(", ",clause)),
272 [ h . t ] then 272 [ h . t ] then
273 if h is field(column, bind) then 273 if h is field(column, bind) then
274 - make_clause_and_binds(t, [bind . so_far], [column+" = :v_"+column . clause]) 274 + make_clause_and_binds(t, [bind . so_far], ["\""+column+"\" = :v_"+column . clause])
275 }. 275 }.
276 276
277 277