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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers