From bb7f5cd11ab87cc3149673d06063b24f9b287b8b Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 17 Oct 2012 12:36:49 +0200 Subject: [PATCH] change pgsql create function language to lowercase/nonquoted for 9.2 (fixes #3308) --- module/idoutils/db/pgsql/pgsql.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/idoutils/db/pgsql/pgsql.sql b/module/idoutils/db/pgsql/pgsql.sql index 95adad48b..6c2130310 100644 --- a/module/idoutils/db/pgsql/pgsql.sql +++ b/module/idoutils/db/pgsql/pgsql.sql @@ -15,11 +15,11 @@ CREATE OR REPLACE FUNCTION from_unixtime(integer) RETURNS timestamp with time zone AS ' SELECT to_timestamp($1) AS result -' LANGUAGE 'SQL'; +' LANGUAGE sql; CREATE OR REPLACE FUNCTION unix_timestamp(timestamp with time zone) RETURNS bigint AS ' SELECT EXTRACT(EPOCH FROM $1)::bigint AS result; -' LANGUAGE 'SQL'; +' LANGUAGE sql; -- -----------------------------------------