Implicit conversion bugaboo in beta2?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Implicit conversion bugaboo in beta2?
Дата
Msg-id 200309142152.54227.josh@agliodbs.com
обсуждение исходный текст
Ответы Re: Implicit conversion bugaboo in beta2?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Guys,

got this problem in 7.4 beta 2:

treedemo=# SELECT  LPAD ((team_name), (LENGTH(team_name) + (3*(tlevel-2)))) AS
teams_display,team_id, lnode
treedemo-# FROM teams
treedemo-# WHERE lnode > 0
treedemo-# ORDER BY lnode;
ERROR:  function lpad(character varying, bigint) does not exist

(the above query worked fine in 7.3.4, as I recall)

treedemo=# \df lpad
               List of functions
 Result data type | Name | Argument data types
------------------+------+---------------------
 text             | lpad | text, integer
 text             | lpad | text, integer, text


Now, I've been in favor of reducing problematic implicit conversions.  But
VARCHAR --> TEXT is one that needs to stay, as there's no possibility of
ambiguity, and most users count on doing it transparently.

Either that, or we need to build all string function for varchar.

--
Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSql 7.3.4 & 7.4 on MacOS X
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Implicit conversion bugaboo in beta2?