summaryrefslogtreecommitdiff
path: root/lib/dblib.lua
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-11-29 21:50:29 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-11-29 21:50:29 +0100
commit977c77aa085b10e48505c861f5d47b3e881170e2 (patch)
tree985647f8f00798d7e2e499305b66d222242e6b40 /lib/dblib.lua
parent0fd6cb126b6238d2cbc01bed12ff043f45039c76 (diff)
parentc99762a8980e691bab478f67b56b3fde56694e86 (diff)
Merge branch 'master' of /pub/repo.git/Baltisot
Diffstat (limited to 'lib/dblib.lua')
-rw-r--r--lib/dblib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua
index 271d5a1..64ce880 100644
--- a/lib/dblib.lua
+++ b/lib/dblib.lua
@@ -759,7 +759,7 @@ END;
count = function(t)
_luadb.iselect(true, t, {"COUNT(*) AS count"})
local row = t:nextrow()
- return row.count or row.COUNT
+ return ((row.count or row.COUNT) or 0) + 0
end,
gselect = function(t, ...)