Fix conversion of strings to datetimes #73

This commit is contained in:
Rafa de la Torre
2015-03-03 09:49:33 +00:00
parent 9114d4e463
commit 61804187c8
3 changed files with 6 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
-- Convert string to date
--
CREATE OR REPLACE FUNCTION CDB_StringToDate(input character varying)
RETURNS date AS $$
DECLARE output DATE;
RETURNS TIMESTAMP AS $$
DECLARE output TIMESTAMP;
BEGIN
BEGIN
output := input::date;