| От | Tom Lane |
|---|---|
| Тема | Re: Unique operator error w/ concatenation |
| Дата | |
| Msg-id | 5004.1311885430@sss.pgh.pa.us обсуждение |
| Ответ на | Unique operator error w/ concatenation (Wells Oliver <woliver@padres.com>) |
| Список | pgsql-admin |
Wells Oliver <woliver@padres.com> writes:
> Folks, experiencing an odd issue. The following on an 8.4 server: select 'foo'::text || 123
> Blows up, saying:
> ERROR: operator is not unique: text || integer
> LINE 1: select 'fo'::text || 123;
> ^
> HINT: Could not choose a best candidate operator. You might need to add explicit type casts.
> But on another postgres 8.4 server, it properly returns a concatenated string.
> Any tips on how/where I can track down why/where there might be duplicate operators?
psql's "\do ||" might help. Presumably somebody's stuck a user-defined
operator named || into that database ...
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера