Mercurial Hosting > luan
diff src/luan/host/init.luan @ 1407:1979cff9aad2
add sql/Web_query
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 20 Sep 2019 17:00:30 -0600 |
parents | 8fe777ba5045 |
children | 4abf88ec66de |
line wrap: on
line diff
--- a/src/luan/host/init.luan Wed Sep 18 09:19:58 2019 -0600 +++ b/src/luan/host/init.luan Fri Sep 20 17:00:30 2019 -0600 @@ -88,7 +88,7 @@ password = Io.password } local db = database(pg) - local exists = db.query("select datname from pg_database where datname=?",domain)() ~= nil; + local exists = db.query("select datname from pg_database where datname=?",domain).results() ~= nil; --logger.info("exists "..exists) if not exists then db.update( [[create user "]]..spec.user..[[" with encrypted password ']]..spec.password..[[']] )