This is currently the same as the condition name, so it doesn't add
any value, only clutter.
- The
PL/pgSQL> condition name for each error code is the
- same as the phrase shown in the table, with underscores substituted
- for spaces. For example, code 22012>, DIVISION BY ZERO,
- has condition name DIVISION_BY_ZERO>. Condition names can
- be written in either upper or lower case. (Note that
+ The symbol shown in the column Condition Name
is also
+ the condition name to use in
PL/pgSQL>. Condition
+ names can be written in either upper or lower case. (Note that
PL/pgSQL> does not recognize warning, as opposed to error,
condition names; those are classes 00, 01, and 02.)
- 3">
+ 2">
- 3" colname="condname">
- 3">
+ 2" colname="condname">
+ 2">
|
Error Code
- Meaning
Condition Name
print "\n\n";
print "\n";
- print "3\">";
+ print "2\">";
print "$_>\n";
print "\n";
# Skip lines without PL/pgSQL condition names
next unless defined($condition_name);
- my $meaning = $condition_name;
- # Remove underscores
- $meaning =~ s/_/ /g;
- # And capitalize
- $meaning =~ tr/[a-z]/[A-Z]/;
-
print "\n";
print "\n";
print "$sqlstate\n";
- print "$meaning\n";
- print "$condition_name\n";
+ print "$condition_name\n";
print "\n";
}