Re: BUG #14935: Cast function shortcut gives an error - Mailing list pgsql-bugs

From Marko Tiikkaja
Subject Re: BUG #14935: Cast function shortcut gives an error
Date
Msg-id CAL9smLAt8rmHb32Dn7cxuEhwe74=+CzYsbWC8W9yY3ueKbQnLQ@mail.gmail.com
Whole thread Raw
In response to BUG #14935: Cast function shortcut gives an error  (jzelez@gmail.com)
Responses Re: BUG #14935: Cast function shortcut gives an error  (Jurica Železnjak <jzelez@gmail.com>)
List pgsql-bugs
On Wed, Nov 29, 2017 at 10:27 AM, wrote: > 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" > The precedence between the two is different. The equivalent would be: ("sensors_sensordata"."data" #>> '{Temperature}')::DOUBLE PRECISION In other words, not a bug. .m

pgsql-bugs by date:

Previous
From: jzelez@gmail.com
Date:
Subject: BUG #14935: Cast function shortcut gives an error
Next
From: Jurica Železnjak
Date:
Subject: Re: BUG #14935: Cast function shortcut gives an error