From 65f867ef4d191b830db0ad0fc13b07becc63416f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 28 Nov 2014 15:25:19 +0000 Subject: Bump version to 0.1.2 --- Makefile | 2 +- lib/dbmodelfunctions.lua | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 929f8a0..8842ed3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ APP_NAME=db PACKAGE=acf-$(APP_NAME) -VERSION=0.1.1 +VERSION=0.1.2 APP_DIST=db* \ diff --git a/lib/dbmodelfunctions.lua b/lib/dbmodelfunctions.lua index db92947..305a9dc 100644 --- a/lib/dbmodelfunctions.lua +++ b/lib/dbmodelfunctions.lua @@ -104,15 +104,16 @@ function mymodule.list_table_entries(dbase, self, clientdata) local tables = db.listtables() retval.value.table.errtxt = "Table does not exist" retval.errtxt = "Table does not exist" - for i,t in ipairs(tables) do - if t == retval.value.table.value then +-- for i,t in ipairs(tables) do +-- if t == retval.value.table.value then +local t = retval.value.table.value retval.value.table.errtxt = nil retval.errtxt = nil retval.value.fields.value = db.listcolumns(t) or {} retval.value.keyfields.value = db.listkeycolumns(t) or {} retval.value.entries.value = db.getselectresponse("SELECT * FROM "..db.escape(t)) or {} - end - end +-- end +-- end if connected then db.databasedisconnect() end end) if not res and err then -- cgit v1.2.3