Skip to content

Commit 8b583ba

Browse files
committed
Make error messages match backend style.
1 parent eac951d commit 8b583ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pl/tcl/pltcl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* pltcl.c - PostgreSQL support for Tcl as
33
* procedural language (PL)
44
*
5-
* $PostgreSQL: pgsql/src/pl/tcl/pltcl.c,v 1.125 2009/01/07 13:44:37 tgl Exp $
5+
* $PostgreSQL: pgsql/src/pl/tcl/pltcl.c,v 1.126 2009/01/14 20:01:52 petere Exp $
66
*
77
**********************************************************************/
88

@@ -1198,7 +1198,7 @@ compile_pltcl_function(Oid fn_oid, Oid tgreloid)
11981198
free(prodesc);
11991199
ereport(ERROR,
12001200
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
1201-
errmsg("pltcl functions cannot return type %s",
1201+
errmsg("PL/Tcl functions cannot return type %s",
12021202
format_type_be(procStruct->prorettype))));
12031203
}
12041204
}
@@ -1210,7 +1210,7 @@ compile_pltcl_function(Oid fn_oid, Oid tgreloid)
12101210
free(prodesc);
12111211
ereport(ERROR,
12121212
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
1213-
errmsg("pltcl functions cannot return tuples yet")));
1213+
errmsg("PL/Tcl functions cannot return composite types")));
12141214
}
12151215

12161216
perm_fmgr_info(typeStruct->typinput, &(prodesc->result_in_func));
@@ -1250,7 +1250,7 @@ compile_pltcl_function(Oid fn_oid, Oid tgreloid)
12501250
free(prodesc);
12511251
ereport(ERROR,
12521252
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
1253-
errmsg("pltcl functions cannot take type %s",
1253+
errmsg("PL/Tcl functions cannot accept type %s",
12541254
format_type_be(procStruct->proargtypes.values[i]))));
12551255
}
12561256

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy