PG 12 hstore creation cast issue

Поиск
Список
Период
Сортировка
От Wells Oliver
Тема PG 12 hstore creation cast issue
Дата
Msg-id CAOC+FBW30umnGfRkc8BD-tr-KrPZFPAd-zr19AdSrRTKCv67Pw@mail.gmail.com
обсуждение исходный текст
Ответы Re: PG 12 hstore creation cast issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
We have this kind of code that worked in 9.6:

select hstore(array['foo'], array[1.0::numeric]);

But now yields:

ERROR:  function hstore(text[], numeric[]) does not exist
LINE 1: select hstore(array['foo'], array[1.0::numeric]);
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

Is there a way to create hstores with numeric types as data? Does everything need to be cast as text?

--

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

Предыдущее
От: Rui DeSousa
Дата:
Сообщение: Re: How to know transaction count in hour basic
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PG 12 hstore creation cast issue