Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/pl/plperl/sql/   (Postgres Database Version 18.4©)  Datei vom 11.4.2026 mit Größe 780 B image not shown  

Quelle  plperl_end.sql

  Sprache: SQL
 

-- test END block handling

-- Not included in the normal testing
-- because it's beyond the scope of the test harness.
-- Available here for manual developer testing.

DO $do$
 my $testlog = "/tmp/pgplperl_test.log";

 warn "Run test, then examine contents of $testlog (which must already exist)\n";
 return unless -f $testlog;

    use IO::Handle; # for autoflush
 open my $fh, '>', $testlog
  or die "Can't write to $testlog: $!";
    $fh->autoflush(1);

    print $fh "# you should see just 3 'Warn: ...' lines: PRE, END and SPI ...\n";
    $SIG{__WARN__} = sub { print $fh "Warn: @_" };
    $SIG{__DIE__}  = sub { print $fh "Die: @_" unless $^S; die @_ };

 END {
  warn "END\n";
  eval { spi_exec_query("select 1") };
  warn $@;
 }
    warn "PRE\n";

$do$ language plperlu;

Messung V0.5 in Prozent
C=87 H=50 G=70

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.