Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fztcjjl committed Nov 19, 2015
1 parent 683e6f7 commit afbe201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/dbmgr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ local function load_data_impl(config, uid)
local data = {}
while true do
if not uid then
if not config.fields then
if not config.columns then
sql = string.format("select * from %s order by %s asc limit %d, 1000", tbname, pk, offset)
else
sql = string.format("select %s from %s order by %s asc limit %d, 1000", config.fields, tbname, pk, offset)
sql = string.format("select %s from %s order by %s asc limit %d, 1000", config.columns, tbname, pk, offset)
end
else
if not config.fields then
if not config.columns then
sql = string.format("select * from %s where uid = %d order by %s asc limit %d, 1000", tbname, uid, pk, offset)
else
sql = string.format("select %s from %s where uid = %d order by %s asc limit %d, 1000", config.fields, tbname, uid, pk, offset)
sql = string.format("select %s from %s where uid = %d order by %s asc limit %d, 1000", config.columns, tbname, uid, pk, offset)
end
end

Expand Down

0 comments on commit afbe201

Please sign in to comment.