Re: named generic constraints [feature request]

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: named generic constraints [feature request]
Дата
Msg-id 162867790911232052j243f4c91hd72809ea59a6d266@mail.gmail.com
обсуждение исходный текст
Ответ на Re: named generic constraints [feature request]  (Caleb Cushing <xenoterracide@gmail.com>)
Ответы Re: named generic constraints [feature request]
Список pgsql-hackers
2009/11/24 Caleb Cushing <xenoterracide@gmail.com>:
>> CREATE OR REPLACE FUNCTION emptystr(text)
>> RETURNS bool AS $$
>>  SELECT $1 <> ''; -- it is SQL not C
>> $$ LANGUAGE sql;
>>
>> CREATE TABLE users(
>>  username TEXT CHECK (NOT emptystr(username)),
>
> although I'm not going to continue discussing the request. this code
> as the opposite desired effect. it should be
>
> SELECT $1 = ''; -- you have a double negative

no -

"--" is line comment in SQL - it same like "//" in C++

Regards
Pavel Stehule

>
> --
> Caleb Cushing
>
> http://xenoterracide.blogspot.com
>


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

Предыдущее
От: Itagaki Takahiro
Дата:
Сообщение: Re: Partitioning option for COPY
Следующее
От: KaiGai Kohei
Дата:
Сообщение: Re: SE-PgSQL patch review