BUG #14935: Cast function shortcut gives an error

From: jzelez(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Cc: jzelez(at)gmail(dot)com
Subject: BUG #14935: Cast function shortcut gives an error
Date: 2017-11-29 08:27:05
Message-ID: 20171129082705.1464.33608@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14935
Logged by: Jurica Železnjak
Email address: jzelez(at)gmail(dot)com
PostgreSQL version: 10.1
Operating system: OS X
Description:

In some cases when using the shortcut notation "::" the database gives an
error.

GOOD:
CAST("sensors_sensordata"."data" #>> '{Temperature}' AS DOUBLE PRECISION) AS
"temp"

ERROR:
"sensors_sensordata"."data" #>> '{Temperature}'::DOUBLE PRECISION AS
"temp"

ERROR message:
[22P02] ERROR: invalid input syntax for type double precision:
"{Temperature}"

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marko Tiikkaja 2017-11-29 09:52:00 Re: BUG #14935: Cast function shortcut gives an error
Previous Message Andrew Gierth 2017-11-29 06:44:41 Re: [BUGS] Improper const-evaluation of HAVING with grouping sets and subquery pullup