Re: INSERT ... ON CONFLICT IGNORE (and UPDATE) 3.0

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: INSERT ... ON CONFLICT IGNORE (and UPDATE) 3.0
Дата
Msg-id 553917AB.8030007@iki.fi
обсуждение исходный текст
Ответ на Re: INSERT ... ON CONFLICT IGNORE (and UPDATE) 3.0  (Peter Geoghegan <pg@heroku.com>)
Ответы Re: INSERT ... ON CONFLICT IGNORE (and UPDATE) 3.0  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
On 04/20/2015 07:37 AM, Peter Geoghegan wrote:
>
>             if (wco->commandType == CMD_INSERT)
>                 command = "INSERT-applicable ";
>             else if (wco->commandType == CMD_UPDATE)
>                 command = "UPDATE-applicable ";
>             else if (wco->commandType == CMD_DELETE)
>                 command = "DELETE-applicable ";
>             else if (wco->commandType == CMD_SELECT)
>                 command = "SELECT-applicable ";
>
>             ereport(ERROR,
>                     (errcode(ERRCODE_WITH_CHECK_OPTION_VIOLATION),
>                  errmsg("new row violates %sWITH CHECK OPTION %sfor \"%s\"",
>                         command ? command : "",
>                         wco->secBarrier ? "(originally security barrier) ":"",
>                         wco->viewname),
>                     val_desc ? errdetail("Failing row contains %s.", val_desc) :
>                                0));

That code in ExecWithCheckOptions is not translatable. See style guide: 
http://www.postgresql.org/docs/devel/static/nls-programmer.html#NLS-GUIDELINES

- Heikki




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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: tablespaces inside $PGDATA considered harmful
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: Freeze avoidance of very large table.