Re: [PATCH] Add missing type conversion functions for PL/Python

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: [PATCH] Add missing type conversion functions for PL/Python
Дата
Msg-id 68a01d38-441e-482f-82a7-f0d2f375fa90@iki.fi
обсуждение исходный текст
Ответ на Re: [PATCH] Add missing type conversion functions for PL/Python  (Nikita Glukhov <n.gluhov@postgrespro.ru>)
Ответы Re: [PATCH] Add missing type conversion functions for PL/Python  (Haozhou Wang <hawang@pivotal.io>)
Список pgsql-hackers
On 12/07/18 18:06, Nikita Glukhov wrote:
> I have added some cross-type test cases and now almost all new code is covered
> (excluding several error cases which can be triggered only by custom numeric
> type implementations).

Thanks! Some of those new tests actually fail, if you run them against 
unpatched master. For example:

  SELECT * FROM test_type_conversion_float8_int2(100::float8);
  INFO:  (100.0, <type 'float'>)
- test_type_conversion_float8_int2
-----------------------------------
-                              100
-(1 row)
-
+ERROR:  invalid input syntax for integer: "100.0"
+CONTEXT:  while creating return value
+PL/Python function "test_type_conversion_float8_int2"

So this patch is making some subtle changes to behavior. I don't think 
we want that.

- Heikki


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

Предыдущее
От: Andrey Borodin
Дата:
Сообщение: Re: GiST VACUUM
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: [HACKERS] Re: [COMMITTERS] pgsql: Remove pgbench "progress" testpending solution of its timing is (fwd)