Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/include/executor/   (Postgres Database Version 18.4©)  Datei vom 11.4.2026 mit Größe 1 kB image not shown  

SSL generate-spiexceptions.pl

  Sprache: Shell
 

#!/usr/bin/perl
#
# Generate the spiexceptions.h header from errcodes.txt
# Copyright (c) 2000-2025, PostgreSQL Global Development Group

use strict;
use warnings FATAL => 'all';

print
  "/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";
print "/* there is deliberately not an #ifndef SPIEXCEPTIONS_H here */\n";

open my $errcodes, '<', $ARGV[0] or die;

while (<$errcodes>)
{
 chomp;

 # Skip comments
 next if /^#/;
 next if /^\s*$/;

 # Skip section headers
 next if /^Section:/;

 die unless /^([^\s]{5})\s+([EWS])\s+([^\s]+)(?:\s+)?([^\s]+)?/;

 (my $sqlstate, my $type, my $errcode_macro, my $condition_name) =
   ($1, $2, $3, $4);

 # Skip non-errors
 next unless $type eq 'E';

 # Skip lines without PL/pgSQL condition names
 next unless defined($condition_name);

 # Change some_error_condition to SomeErrorCondition
 $condition_name =~ s/([a-z])([^_]*)(?:_|$)/\u$1$2/g;

 print "\n{\n\t\"spiexceptions.$condition_name\", "
   . "\"$condition_name\", $errcode_macro\n},\n";
}

close $errcodes;

Messung V0.5 in Prozent
C=75 H=50 G=63

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-05) ¤

*© Formatika GbR, Deutschland






Versionsinformation zu Columbo

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Anfrage:

Dauer der Verarbeitung:

Sekunden

sprechenden Kalenders