1
1
/**********************************************************************
2
2
* plperl.c - perl as a procedural language for PostgreSQL
3
3
*
4
- * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.144 2009/01/07 13:44:37 tgl Exp $
4
+ * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.145 2009/02/19 10:33:17 petere Exp $
5
5
*
6
6
**********************************************************************/
7
7
@@ -199,7 +199,7 @@ _PG_init(void)
199
199
pg_bindtextdomain (TEXTDOMAIN );
200
200
201
201
DefineCustomBoolVariable ("plperl.use_strict" ,
202
- gettext_noop ("If true, will compile trusted and untrusted perl code in strict mode" ),
202
+ gettext_noop ("If true, trusted and untrusted Perl code will be compiled in strict mode. " ),
203
203
NULL ,
204
204
& plperl_use_strict ,
205
205
false,
@@ -913,7 +913,7 @@ plperl_validator(PG_FUNCTION_ARGS)
913
913
proc -> prorettype != VOIDOID )
914
914
ereport (ERROR ,
915
915
(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
916
- errmsg ("plperl functions cannot return type %s" ,
916
+ errmsg ("PL/Perl functions cannot return type %s" ,
917
917
format_type_be (proc -> prorettype ))));
918
918
}
919
919
@@ -925,7 +925,7 @@ plperl_validator(PG_FUNCTION_ARGS)
925
925
if (get_typtype (argtypes [i ]) == TYPTYPE_PSEUDO )
926
926
ereport (ERROR ,
927
927
(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
928
- errmsg ("plperl functions cannot take type %s" ,
928
+ errmsg ("PL/Perl functions cannot accept type %s" ,
929
929
format_type_be (argtypes [i ]))));
930
930
}
931
931
@@ -1280,7 +1280,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
1280
1280
{
1281
1281
ereport (ERROR ,
1282
1282
(errcode (ERRCODE_DATATYPE_MISMATCH ),
1283
- errmsg ("set-returning Perl function must return "
1283
+ errmsg ("set-returning PL/ Perl function must return "
1284
1284
"reference to array or use return_next" )));
1285
1285
}
1286
1286
@@ -1313,7 +1313,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
1313
1313
{
1314
1314
ereport (ERROR ,
1315
1315
(errcode (ERRCODE_DATATYPE_MISMATCH ),
1316
- errmsg ("composite-returning Perl function "
1316
+ errmsg ("composite-returning PL/ Perl function "
1317
1317
"must return reference to hash" )));
1318
1318
}
1319
1319
@@ -1438,7 +1438,7 @@ plperl_trigger_handler(PG_FUNCTION_ARGS)
1438
1438
{
1439
1439
ereport (WARNING ,
1440
1440
(errcode (ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED ),
1441
- errmsg ("ignoring modified tuple in DELETE trigger" )));
1441
+ errmsg ("ignoring modified row in DELETE trigger" )));
1442
1442
trv = NULL ;
1443
1443
}
1444
1444
}
@@ -1447,7 +1447,7 @@ plperl_trigger_handler(PG_FUNCTION_ARGS)
1447
1447
ereport (ERROR ,
1448
1448
(errcode (ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED ),
1449
1449
errmsg ("result of Perl trigger function must be undef, "
1450
- "\"SKIP\" or \"MODIFY\"" )));
1450
+ "\"SKIP\", or \"MODIFY\"" )));
1451
1451
trv = NULL ;
1452
1452
}
1453
1453
retval = PointerGetDatum (trv );
@@ -1612,7 +1612,7 @@ compile_plperl_function(Oid fn_oid, bool is_trigger)
1612
1612
free (prodesc );
1613
1613
ereport (ERROR ,
1614
1614
(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
1615
- errmsg ("plperl functions cannot return type %s" ,
1615
+ errmsg ("PL/Perl functions cannot return type %s" ,
1616
1616
format_type_be (procStruct -> prorettype ))));
1617
1617
}
1618
1618
}
@@ -1659,7 +1659,7 @@ compile_plperl_function(Oid fn_oid, bool is_trigger)
1659
1659
free (prodesc );
1660
1660
ereport (ERROR ,
1661
1661
(errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
1662
- errmsg ("plperl functions cannot take type %s" ,
1662
+ errmsg ("PL/Perl functions cannot accept type %s" ,
1663
1663
format_type_be (procStruct -> proargtypes .values [i ]))));
1664
1664
}
1665
1665
@@ -1902,7 +1902,7 @@ plperl_return_next(SV *sv)
1902
1902
!(SvOK (sv ) && SvTYPE (sv ) == SVt_RV && SvTYPE (SvRV (sv )) == SVt_PVHV ))
1903
1903
ereport (ERROR ,
1904
1904
(errcode (ERRCODE_DATATYPE_MISMATCH ),
1905
- errmsg ("setof -composite-returning Perl function "
1905
+ errmsg ("SETOF -composite-returning PL/ Perl function "
1906
1906
"must call return_next with reference to hash" )));
1907
1907
1908
1908
if (!current_call_data -> ret_tdesc )
0 commit comments