fix nil check in order statement parsing
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good

This commit is contained in:
DanyLE 2023-01-31 15:10:30 +01:00
parent 86538b8913
commit eae3ae7b14

View File

@ -127,6 +127,7 @@ function SQLQueryGenerator:sql_fields()
end
function SQLQueryGenerator:sql_order()
if not self.order then return nil end
local tb = {}
for k, v in ipairs(self.order) do
local arr = explode(v, "$")