mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
This patch makes the error message strings throughout the backend
more compliant with the error message style guide. In particular, errdetail should begin with a capital letter and end with a period, whereas errmsg should not. I also fixed a few related issues in passing, such as fixing the repeated misspelling of "lexeme" in contrib/tsearch2 (per Tom's suggestion).
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.49 2005/11/04 23:14:00 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.50 2006/03/01 06:30:32 neilc Exp $
|
||||
-->
|
||||
|
||||
<chapter id="plperl">
|
||||
@ -399,7 +399,7 @@ CREATE OR REPLACE FUNCTION lotsa_md5 (INTEGER) RETURNS SETOF foo_type AS $$
|
||||
my $t = localtime;
|
||||
elog(NOTICE, "opening file $file at $t" );
|
||||
open my $fh, '<', $file # ooh, it's a file access!
|
||||
or elog(ERROR, "Can't open $file for reading: $!");
|
||||
or elog(ERROR, "can't open $file for reading: $!");
|
||||
my @words = <$fh>;
|
||||
close $fh;
|
||||
$t = localtime;
|
||||
@ -556,9 +556,9 @@ $$ LANGUAGE plperl;
|
||||
CREATE FUNCTION badfunc() RETURNS integer AS $$
|
||||
my $tmpfile = "/tmp/badfile";
|
||||
open my $fh, '>', $tmpfile
|
||||
or elog(ERROR, qq{Could not open the file "$tmpfile": $!});
|
||||
or elog(ERROR, qq{could not open the file "$tmpfile": $!});
|
||||
print $fh "Testing writing to a file\n";
|
||||
close $fh or elog(ERROR, qq{Could not close the file "$tmpfile": $!});
|
||||
close $fh or elog(ERROR, qq{could not close the file "$tmpfile": $!});
|
||||
return 1;
|
||||
$$ LANGUAGE plperl;
|
||||
</programlisting>
|
||||
|
Reference in New Issue
Block a user