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