Fix conversion of strings to datetimes #73
This commit is contained in:
parent
9114d4e463
commit
61804187c8
3
Makefile
3
Makefile
@ -1,7 +1,7 @@
|
|||||||
# cartodb/Makefile
|
# cartodb/Makefile
|
||||||
|
|
||||||
EXTENSION = cartodb
|
EXTENSION = cartodb
|
||||||
EXTVERSION = 0.7.1
|
EXTVERSION = 0.7.2
|
||||||
|
|
||||||
SED = sed
|
SED = sed
|
||||||
|
|
||||||
@ -35,6 +35,7 @@ UPGRADABLE = \
|
|||||||
0.5.3 \
|
0.5.3 \
|
||||||
0.6.0 \
|
0.6.0 \
|
||||||
0.7.0 \
|
0.7.0 \
|
||||||
|
0.7.1 \
|
||||||
$(EXTVERSION)dev \
|
$(EXTVERSION)dev \
|
||||||
$(EXTVERSION)next \
|
$(EXTVERSION)next \
|
||||||
$(END)
|
$(END)
|
||||||
|
3
NEWS.md
3
NEWS.md
@ -1,5 +1,6 @@
|
|||||||
0.7.2 (2015-mm-dd)
|
0.7.2 (2015-03-03)
|
||||||
------------------
|
------------------
|
||||||
|
* Fix conversion of strings to datetime
|
||||||
|
|
||||||
0.7.1 (2015-02-27)
|
0.7.1 (2015-02-27)
|
||||||
------------------
|
------------------
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
-- Convert string to date
|
-- Convert string to date
|
||||||
--
|
--
|
||||||
CREATE OR REPLACE FUNCTION CDB_StringToDate(input character varying)
|
CREATE OR REPLACE FUNCTION CDB_StringToDate(input character varying)
|
||||||
RETURNS date AS $$
|
RETURNS TIMESTAMP AS $$
|
||||||
DECLARE output DATE;
|
DECLARE output TIMESTAMP;
|
||||||
BEGIN
|
BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
output := input::date;
|
output := input::date;
|
||||||
|
Loading…
Reference in New Issue
Block a user