Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ...

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ...
Дата
Msg-id 1138591247.8835.6.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ... TO  (David Fetter <david@fetter.org>)
Ответы Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ...
Список pgsql-patches
On Sun, 2006-01-29 at 17:03 -0800, David Fetter wrote:
> Another followup, this time with the comment done right.

+       /* Disallow the forbidden_delimiter strings */
+       if (strcspn(cstate->delim, BADCHARS) != 1)
+               elog(ERROR, "COPY delimiter cannot be %#02x",
+                        *cstate->delim);
+

The comment is still wrong: referencing "forbidden_delimiter" makes it
sound like there is something named forbidden_delimiter, but there is
not (at least in the patch as submitted).

The patch should also use ereport rather than elog, because this error
message might reasonably be encountered by the user.

-Neil



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

Предыдущее
От: NAKANO Yoshihisa
Дата:
Сообщение: Re: Patch for ALTER TABLE / TYPE
Следующее
От: David Fetter
Дата:
Сообщение: Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ...