Re: bug with distinct?

Поиск
Список
Период
Сортировка
От Peniche Lopez Alfonso Jose
Тема Re: bug with distinct?
Дата
Msg-id 200102101711.f1AHBEO55768@iteso.mx
обсуждение исходный текст
Ответ на Re: bug with distinct?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Quoting Tom Lane <tgl@sss.pgh.pa.us>:

> Alfonso Peniche <alfonso@iteso.mx> writes:
> >      SELECT distinct \'mod_type\'
,currval(\'mytable_idmytable_seq\') from
> > mytable;
> > ERROR:  Unable to identify an ordering operator \'<\'
for type \'unknown\'
> >  Use an explicit ordering operator or modify the
query
>
> You need to give the literal an explicit type, eg,
>
>      SELECT distinct \'mod_type\'::text,
currval(\'mytable_idmytable_seq\')
> from
>      mytable;
>
> 7.1 will default to assuming that you meant \'text\' in
this scenario,
> but older releases are pickier.
>
>             regards, tom lane
>
Thanx, it woeks great now.

Cheers

---

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

Предыдущее
От: Anand Raman
Дата:
Сообщение: locking problem with JDBC (suspicion)
Следующее
От: Bill Barnes
Дата:
Сообщение: Installing ~-tcl-7.0.3 in Mandrake 7.2