diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-06 21:09:58 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-06 21:09:58 -0700 |
commit | 6cb0b9f759733600e5879ea48cfdbf9f37f069ec (patch) | |
tree | d046e6d83dff661cad58eb97fb4acbe00e94a2e9 | |
parent | 5c890b42ae70f211e40f7d1d5d877ecb62b511df (diff) |
Consolidation.
-rw-r--r-- | lib/dblib.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua index b5d889f..5466334 100644 --- a/lib/dblib.lua +++ b/lib/dblib.lua @@ -545,6 +545,9 @@ _luadb = { stmt = stmt .. " ORDER BY `" .. options.order.by .. "` " .. direction end if options.limit then + if type(options.limit) ~= "table" then + error("Wrong type for options.limit; should be a table.") + end local start, size = 0, 30 if options.limit.start then if type(options.limit.start) ~= "number" then |