diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-06-30 19:28:29 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-06-30 19:28:29 +0000 |
commit | 16fa3390594d7316429287c1453d944cd68febf4 (patch) | |
tree | d09e580ca279ce25ff177033568ddb9591f94e49 | |
parent | 26d839823382a7245617fd1e08bafb402dda3f42 (diff) | |
download | acf-lib-16fa3390594d7316429287c1453d944cd68febf4.tar.bz2 acf-lib-16fa3390594d7316429287c1453d944cd68febf4.tar.xz |
Modify db to only report tables in public schema for postgresql
We can add proper schema support in the future
-rw-r--r-- | db.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ end export.listtables = function(dbobject) local result = {} if dbobject.engine == mymodule.engine.postgresql then - local tab = dbobject.getselectresponse("SELECT tablename FROM pg_tables WHERE tablename !~* 'pg_*' ORDER BY tablename ASC") + local tab = dbobject.getselectresponse("SELECT tablename FROM pg_tables WHERE tablename !~* 'pg_*' AND schemaname = 'public' ORDER BY tablename ASC") for i,t in ipairs(tab) do result[#result+1] = t.tablename end |