summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-06 21:09:58 -0700
committerPixel <pixel@nobis-crew.org>2008-10-06 21:09:58 -0700
commit6cb0b9f759733600e5879ea48cfdbf9f37f069ec (patch)
treed046e6d83dff661cad58eb97fb4acbe00e94a2e9 /lib
parent5c890b42ae70f211e40f7d1d5d877ecb62b511df (diff)
Consolidation.
Diffstat (limited to 'lib')
-rw-r--r--lib/dblib.lua3
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