From 6cb0b9f759733600e5879ea48cfdbf9f37f069ec Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 6 Oct 2008 21:09:58 -0700 Subject: Consolidation. --- lib/dblib.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3