pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jzelez@gmail.com
To: pgsql-bugs@postgresql.org
Cc: jzelez@gmail.com
Subject: BUG #14935: Cast function shortcut gives an error
Date: Wed, 29 Nov 2017 08:27:05 +0000
Message-ID: <20171129082705.1464.33608@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      14935
Logged by:          Jurica Železnjak
Email address:      jzelez@gmail.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}"



view thread (3+ messages)  latest in thread

Message-ID: <20171129082705.1464.33608@wrigleys.postgresql.org>
Permalink:  ../20171129082705.1464.33608@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20171129082705.1464.33608@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: jzelez@gmail.com
  Subject: Re: BUG #14935: Cast function shortcut gives an error
  In-Reply-To: <20171129082705.1464.33608@wrigleys.postgresql.org>
  References: <20171129082705.1464.33608@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox