Use the now() for PostgreSQL
This prevents and error for SQLite
This commit is contained in:
parent
7e88b594dd
commit
2816a54a8f
|
|
@ -254,7 +254,7 @@
|
||||||
if (database["type"] == "mysql") then
|
if (database["type"] == "mysql") then
|
||||||
params.now = os.time();
|
params.now = os.time();
|
||||||
sql = sql .. "AND expires > :now ";
|
sql = sql .. "AND expires > :now ";
|
||||||
else
|
elseif (database["type"] == "pgsql") then
|
||||||
sql = sql .. "AND to_timestamp(expires) > NOW()";
|
sql = sql .. "AND to_timestamp(expires) > NOW()";
|
||||||
end
|
end
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue