BUG #14935: Cast function shortcut gives an error

Поиск
Список
Период
Сортировка
От jzelez@gmail.com
Тема BUG #14935: Cast function shortcut gives an error
Дата
Msg-id 20171129082705.1464.33608@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #14935: Cast function shortcut gives an error  (Marko Tiikkaja <marko@joh.to>)
Список pgsql-bugs
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}"


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: [BUGS] Improper const-evaluation of HAVING with grouping sets and subquery pullup
Следующее
От: Marko Tiikkaja
Дата:
Сообщение: Re: BUG #14935: Cast function shortcut gives an error