Showing 1 changed files with 2 additions and 2 deletions
+2 -2
.fgfs/fgaddon
... ...
@@ -244,12 +244,12 @@ function update_database () {
244 244
         known=$(sqlite_request "select variantof from setxml where file is '$sx'")
245 245
         if test -n "$known"; then
246 246
             for col in ${!data[@]}; do
247
-                dbvalue=$(sqlite_request "select '$col'
247
+                dbvalue=$(sqlite_request "select \`$col\`
248 248
                                           from setxml
249 249
                                           where file is '$sx' and variantof = $known")
250 250
                 if test "$dbvalue" != "${data[$col]}" -a -n "${data[$col]}"; then
251 251
                     sqlite_request "update setxml
252
-                                    set '$col' = '${data[$col]//\'/\'\'}'
252
+                                    set \`$col\` = '${data[$col]//\'/\'\'}'
253 253
                                     where file is '$sx' and variantof = $known"
254 254
                 fi
255 255
             done