File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
*
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.94 2008/07/11 07:02:43 petere Exp $
13
+ * $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.95 2008/07/12 10:44:56 petere Exp $
14
14
*
15
15
* DESCRIPTION
16
16
* These routines take the parse tree and pick out the
@@ -1407,7 +1407,7 @@ CreateCast(CreateCastStmt *stmt)
1407
1407
if (!IsBinaryCoercible (sourcetypeid , procstruct -> proargtypes .values [0 ]))
1408
1408
ereport (ERROR ,
1409
1409
(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
1410
- errmsg ("argument of cast function must match or be binary-compatible with source data type" )));
1410
+ errmsg ("argument of cast function must match or be binary-coercible from source data type" )));
1411
1411
if (nargs > 1 && procstruct -> proargtypes .values [1 ] != INT4OID )
1412
1412
ereport (ERROR ,
1413
1413
(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
@@ -1419,7 +1419,7 @@ CreateCast(CreateCastStmt *stmt)
1419
1419
if (!IsBinaryCoercible (procstruct -> prorettype , targettypeid ))
1420
1420
ereport (ERROR ,
1421
1421
(errcode (ERRCODE_INVALID_OBJECT_DEFINITION ),
1422
- errmsg ("return data type of cast function must match or be binary-compatible with target data type" )));
1422
+ errmsg ("return data type of cast function must match or be binary-coercible to target data type" )));
1423
1423
1424
1424
/*
1425
1425
* Restricting the volatility of a cast function may or may not be a
Original file line number Diff line number Diff line change 8
8
*
9
9
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
10
10
*
11
- * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.175 2008/07/03 15:59:55 petere Exp $
11
+ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.176 2008/07/12 10:44:56 petere Exp $
12
12
*/
13
13
#include "postgres_fe.h"
14
14
@@ -2002,14 +2002,14 @@ listCasts(const char *pattern)
2002
2002
initPQExpBuffer (& buf );
2003
2003
/*
2004
2004
* We need left join here for binary casts. Also note that we don't
2005
- * attempt to localize '(binary compatible )', because there's too much
2005
+ * attempt to localize '(binary coercible )', because there's too much
2006
2006
* risk of gettext translating a function name that happens to match
2007
2007
* some string in the PO database.
2008
2008
*/
2009
2009
printfPQExpBuffer (& buf ,
2010
2010
"SELECT pg_catalog.format_type(castsource, NULL) AS \"%s\",\n"
2011
2011
" pg_catalog.format_type(casttarget, NULL) AS \"%s\",\n"
2012
- " CASE WHEN castfunc = 0 THEN '(binary compatible )'\n"
2012
+ " CASE WHEN castfunc = 0 THEN '(binary coercible )'\n"
2013
2013
" ELSE p.proname\n"
2014
2014
" END as \"%s\",\n"
2015
2015
" CASE WHEN c.castcontext = 'e' THEN '%s'\n"
You can’t perform that action at this time.
0 commit comments