Mercurial Hosting > luan
diff src/luan/host/Util.luan @ 1407:1979cff9aad2
add sql/Web_query
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 20 Sep 2019 17:00:30 -0600 |
parents | a5f61890ad84 |
children | db57d562c4bd |
line wrap: on
line diff
--- a/src/luan/host/Util.luan Wed Sep 18 09:19:58 2019 -0600 +++ b/src/luan/host/Util.luan Fri Sep 20 17:00:30 2019 -0600 @@ -64,7 +64,7 @@ return end local db = database(pg_admin) - local exists = db.query("select rolname from pg_roles where rolname=?",domain)() ~= nil; + local exists = db.query("select rolname from pg_roles where rolname=?",domain).results() ~= nil; --logger.info("exists "..exists) if exists then db.update( [[alter role "]]..domain..[[" with encrypted password ']]..password..[[']] )