Skip to content

Commit

Permalink
fix sql error: missing "`"
Browse files Browse the repository at this point in the history
  • Loading branch information
sumory authored Nov 10, 2016
1 parent caafb4e commit d06a150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orange/plugins/redirect/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ API["/redirect/configs"] = {
local success = false
-- 插入到mysql
local insert_result = store:insert({
sql = "insert into redirect(`key`, `value, `op_time`) values(?,?,?)",
sql = "insert into redirect(`key`, `value`, `op_time`) values(?,?,?)",
params = { rule.id, cjson.encode(rule), rule.time }
})

Expand Down

0 comments on commit d06a150

Please sign in to comment.