From: Peter Eisentraut Date: Sat, 12 Jul 2008 10:44:56 +0000 (+0000) Subject: More replacements of binary compatible to binary coercible. X-Git-Tag: recoveryinfrav9~838 X-Git-Url: http://git.postgresql.org/gitweb/irc:/static/gitweb.js?a=commitdiff_plain;h=977a2fcf3b7077408a6598def23e4ea49c60d9c3;p=users%2Fsimon%2Fpostgres.git More replacements of binary compatible to binary coercible. --- diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c index 3357f38979..0e5804cb33 100644 --- a/src/backend/commands/functioncmds.c +++ b/src/backend/commands/functioncmds.c @@ -1407,7 +1407,7 @@ CreateCast(CreateCastStmt *stmt) if (!IsBinaryCoercible(sourcetypeid, procstruct->proargtypes.values[0])) ereport(ERROR, (errcode(ERRCODE_INVALID_OBJECT_DEFINITION), - errmsg("argument of cast function must match or be binary-compatible with source data type"))); + errmsg("argument of cast function must match or be binary-coercible from source data type"))); if (nargs > 1 && procstruct->proargtypes.values[1] != INT4OID) ereport(ERROR, (errcode(ERRCODE_INVALID_OBJECT_DEFINITION), @@ -1419,7 +1419,7 @@ CreateCast(CreateCastStmt *stmt) if (!IsBinaryCoercible(procstruct->prorettype, targettypeid)) ereport(ERROR, (errcode(ERRCODE_INVALID_OBJECT_DEFINITION), - errmsg("return data type of cast function must match or be binary-compatible with target data type"))); + errmsg("return data type of cast function must match or be binary-coercible to target data type"))); /* * Restricting the volatility of a cast function may or may not be a diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index f2100a4d86..9dde336b9e 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -2002,14 +2002,14 @@ listCasts(const char *pattern) initPQExpBuffer(&buf); /* * We need left join here for binary casts. Also note that we don't - * attempt to localize '(binary compatible)', because there's too much + * attempt to localize '(binary coercible)', because there's too much * risk of gettext translating a function name that happens to match * some string in the PO database. */ printfPQExpBuffer(&buf, "SELECT pg_catalog.format_type(castsource, NULL) AS \"%s\",\n" " pg_catalog.format_type(casttarget, NULL) AS \"%s\",\n" - " CASE WHEN castfunc = 0 THEN '(binary compatible)'\n" + " CASE WHEN castfunc = 0 THEN '(binary coercible)'\n" " ELSE p.proname\n" " END as \"%s\",\n" " CASE WHEN c.castcontext = 'e' THEN '%s'\n"