Re: count(*) of zero rows returns 1

Поиск
Список
Период
Сортировка
От Shaun Thomas
Тема Re: count(*) of zero rows returns 1
Дата
Msg-id 50F5AD7C.2070601@optionshouse.com
обсуждение исходный текст
Ответ на Re: count(*) of zero rows returns 1  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: count(*) of zero rows returns 1  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 01/15/2013 01:18 PM, Bruce Momjian wrote:

>> AFAICR, 'dual' table has one column named 'DUMMY' and one row with
>> value, single character X.
>
> How elegant.  :-(

Let's see what EnterpriseDB produces:

test=> select * from dual;
 dummy
------- X
(1 row)

Yep, elegant gets my vote. ;) But then again, Oracle also created 
VARCHAR2 and told everyone to start using that, just in case they ever 
modified VARCHAR to be SQL compliant. Thankfully we have you guys, so PG 
won't go down a similar route.

-- 
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-676-8870
sthomas@optionshouse.com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCH] COPY .. COMPRESSED
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl idempotent option