Drop useless DEFAULT specification in plpgsql variable declarations

This commit is contained in:
Sandro Santilli 2014-06-11 11:25:25 +02:00
parent 9dbe854df7
commit 81bbfcbda8
3 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -4,6 +4,7 @@
Enhancements:
- Do not force re-cartodbfication on CREATE FROM unpackaged
- Drop useless DEFAULT specification in plpgsql variable declarations
0.2.0 - 2014-06-09
------------------

View File

@ -2,7 +2,7 @@
--
CREATE OR REPLACE FUNCTION CDB_DateToNumber(input timestamp)
RETURNS double precision AS $$
DECLARE output double precision DEFAULT NULL;
DECLARE output double precision;
BEGIN
BEGIN
SELECT extract (EPOCH FROM input) INTO output;

View File

@ -2,7 +2,7 @@
--
CREATE OR REPLACE FUNCTION CDB_StringToDate(input character varying)
RETURNS date AS $$
DECLARE output DATE DEFAULT NULL;
DECLARE output DATE;
BEGIN
BEGIN
output := input::date;