mirror of
https://github.com/lxsang/silk.git
synced 2025-07-25 02:10:06 +02:00
fix nil check in order statement parsing
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good
This commit is contained in:
@ -127,6 +127,7 @@ function SQLQueryGenerator:sql_fields()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SQLQueryGenerator:sql_order()
|
function SQLQueryGenerator:sql_order()
|
||||||
|
if not self.order then return nil end
|
||||||
local tb = {}
|
local tb = {}
|
||||||
for k, v in ipairs(self.order) do
|
for k, v in ipairs(self.order) do
|
||||||
local arr = explode(v, "$")
|
local arr = explode(v, "$")
|
||||||
|
Reference in New Issue
Block a user