Re: Trying to create implicit casts to text in PG 8.3

Поиск
Список
Период
Сортировка
От Emanuel Calvo Franco
Тема Re: Trying to create implicit casts to text in PG 8.3
Дата
Msg-id f205bb120901130419j65781270qddc1a374d7956369@mail.gmail.com
обсуждение исходный текст
Ответ на Trying to create implicit casts to text in PG 8.3  (Aleksander Kmetec <aleksander.kmetec@intera.si>)
Ответы Re: Trying to create implicit casts to text in PG 8.3
Список pgsql-general
2009/1/13 Aleksander Kmetec <aleksander.kmetec@intera.si>:
> Hi, everyone.
>
> I'm trying to upgrade a database which is used by several hundred
> installations of an app; with each installation possibly running some custom
> code and 3rd party extensions. I was hoping that it would be possible to
> re-add implicit casts to text for bacwards compatibility with 8.2, since
> that would be much easier and smoother than testing all those installations
> and/or waiting for bug reports to start pouring in...
>
> I tried adding casts found here:
> http://code.open-bio.org/svnweb/index.cgi/biosql/revision?rev=284
>
> Function calls work fine now, but a new problem appeared with operators:
> SELECT EXTRACT(DAY FROM NOW()) || 'abc';
> ERROR:  operator is not unique: double precision || unknown
>
> Is there a way to get around this?
>

You add the cast's but not the operator.
The cast is in other way (try to compare with a text '13')
for example.

>
> Regards,
> Aleksander
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



--
      Emanuel Calvo Franco
   ArPUG / AOSUG Member
 Postgresql Support & Admin

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

Предыдущее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: limit and other joined tables
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [pgsql-advocacy] PgUS 2008 end of year summary