mirror of
https://github.com/php/doc-de.git
synced 2026-03-24 15:22:14 +01:00
1038 lines
31 KiB
XML
1038 lines
31 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 3c6c95fcfd7d9eaa603df40327693ea8dff89d53 Maintainer: conni Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<!-- Rev-Revision: a0ae28d3bc85f927c22649ebd9a590b921534b7d Reviewer: samesch -->
|
|
<appendix xml:id="pgsql.constants" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.constants;
|
|
&extension.constants;
|
|
|
|
<variablelist>
|
|
<varlistentry xml:id="constant.pgsql-libpq-version">
|
|
<term>
|
|
<constant>PGSQL_LIBPQ_VERSION</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Kurze libpq-Version, die nur Zahlen und Punkte enthält.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-libpq-version-str">
|
|
<term>
|
|
<constant>PGSQL_LIBPQ_VERSION_STR</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Vor PHP 8.0.0 die lange libpq-Version, die Compiler-Informationen
|
|
enthält. Ab PHP 8.0.0 ist der Wert identisch mit
|
|
<constant>PGSQL_LIBPQ_VERSION</constant> und die Verwendung von
|
|
<constant>PGSQL_LIBPQ_VERSION_STR</constant> ist veraltet.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-assoc">
|
|
<term>
|
|
<constant>PGSQL_ASSOC</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_fetch_array</function> übergeben. Gibt
|
|
ein assoziatives Array zurück, mit den Feldnamen als Indizes und den
|
|
entsprechenden Werten.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-num">
|
|
<term>
|
|
<constant>PGSQL_NUM</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_fetch_array</function> übergeben. Gibt
|
|
ein numerisches Array zurück, mit den Feldnummern als Indizes und den
|
|
entsprechenden Werten.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-both">
|
|
<term>
|
|
<constant>PGSQL_BOTH</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_fetch_array</function> übergeben. Gibt
|
|
ein Array zurück, das sowohl assoziativ (mit den Feldnamen) als auch
|
|
numerisch (mit den Feldnummern) indiziert ist, und den entsprechenden
|
|
Werten.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connect-force-new">
|
|
<term>
|
|
<constant>PGSQL_CONNECT_FORCE_NEW</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_connect</function> übergeben, um eine
|
|
neue Verbindung zu erzwingen, anstatt eine identische, bereits geöffnete
|
|
Verbindung wieder zu benutzen.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connect-async">
|
|
<term>
|
|
<constant>PGSQL_CONNECT_ASYNC</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an <function>pg_connect</function> übergeben, um eine asynchrone
|
|
Verbindung zu erzeugen.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connection-auth-ok">
|
|
<term>
|
|
<constant>PGSQL_CONNECTION_AUTH_OK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connection-awaiting-response">
|
|
<term>
|
|
<constant>PGSQL_CONNECTION_AWAITING_RESPONSE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connection-bad">
|
|
<term>
|
|
<constant>PGSQL_CONNECTION_BAD</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_connection_status</function>
|
|
zurückgegeben und zeigt an, dass der Status der Datenbankverbindung
|
|
ungültig ist.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connection-made">
|
|
<term>
|
|
<constant>PGSQL_CONNECTION_MADE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connection-ok">
|
|
<term>
|
|
<constant>PGSQL_CONNECTION_OK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_connection_status</function>
|
|
zurückgegeben und zeigt an, dass der Status der Datenbankverbindung
|
|
gültig ist.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connection-setenv">
|
|
<term>
|
|
<constant>PGSQL_CONNECTION_SETENV</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connection-ssl-startup">
|
|
<term>
|
|
<constant>PGSQL_CONNECTION_SSL_STARTUP</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-connection-started">
|
|
<term>
|
|
<constant>PGSQL_CONNECTION_STARTED</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-seek-set">
|
|
<term>
|
|
<constant>PGSQL_SEEK_SET</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_lo_seek</function> übergeben.
|
|
Das Objekt wird von Beginn an durchsucht.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-seek-cur">
|
|
<term>
|
|
<constant>PGSQL_SEEK_CUR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_lo_seek</function> übergeben. Das
|
|
Objekt wird ab der aktuellen Position durchsucht.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-seek-end">
|
|
<term>
|
|
<constant>PGSQL_SEEK_END</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_lo_seek</function> übergeben. Das
|
|
Objekt wird ausgehend vom Ende durchsucht.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-empty-query">
|
|
<term>
|
|
<constant>PGSQL_EMPTY_QUERY</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben,
|
|
wenn der an den Server gesendete String leer war.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-command-ok">
|
|
<term>
|
|
<constant>PGSQL_COMMAND_OK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben.
|
|
Ein Kommando wurde erfolgreich ausgeführt, aber es wurden
|
|
keine Daten zurückgegeben.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-tuples-ok">
|
|
<term>
|
|
<constant>PGSQL_TUPLES_OK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben.
|
|
Ein Kommando wurde erfolgreich ausgeführt und es wurden
|
|
Daten (wie etwa ein <literal>SELECT</literal> oder
|
|
<literal>SHOW</literal>) zurückgegeben.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-tuples-chunk">
|
|
<term>
|
|
<constant>PGSQL_TUPLES_CHUNK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben.
|
|
Zeigt den erfolgreichen Abschluss eines Befehls an, der Daten im
|
|
Blockmodus (Chunked Mode) zurückgibt.
|
|
Wird für <literal>SELECT</literal>-Befehle zurückgegeben, wenn
|
|
<function>pg_set_chunked_rows_size</function> gesetzt ist.
|
|
Die Ergebnismenge wird in mehrere Blöcke aufgeteilt, die jeweils eine
|
|
vordefinierte Anzahl von Zeilen enthalten.
|
|
Verfügbar seit PHP 8.4.0 und libpq 17.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-copy-out">
|
|
<term>
|
|
<constant>PGSQL_COPY_OUT</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben.
|
|
Ein Datentransfer vom Server wurde gestartet.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-copy-in">
|
|
<term>
|
|
<constant>PGSQL_COPY_IN</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben.
|
|
Ein Datentransfer zum Server wurde gestartet.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-bad-response">
|
|
<term>
|
|
<constant>PGSQL_BAD_RESPONSE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben.
|
|
Die Serverantwort wurde nicht verstanden.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-nonfatal-error">
|
|
<term>
|
|
<constant>PGSQL_NONFATAL_ERROR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben.
|
|
Ein nicht-fataler Fehler (eine Notiz oder Warnung) ist aufgetreten.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-fatal-error">
|
|
<term>
|
|
<constant>PGSQL_FATAL_ERROR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_result_status</function> zurückgegeben.
|
|
Ein fataler Fehler ist aufgetreten.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-transaction-idle">
|
|
<term>
|
|
<constant>PGSQL_TRANSACTION_IDLE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_transaction_status</function>
|
|
zurückgegeben. Die Verbindung wird momentan nicht benutzt, es findet
|
|
aktuell keine Transaktion statt.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-transaction-active">
|
|
<term>
|
|
<constant>PGSQL_TRANSACTION_ACTIVE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_transaction_status</function>
|
|
zurückgegeben. Die Verbindung wird momentan benutzt. Es wird eine Abfrage
|
|
ausgeführt, die noch nicht beendet ist.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-transaction-intrans">
|
|
<term>
|
|
<constant>PGSQL_TRANSACTION_INTRANS</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_transaction_status</function>
|
|
zurückgegeben. Die Verbindung wird von einer Transaktion benutzt, ist
|
|
aber momentan nicht aktiv.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-transaction-inerror">
|
|
<term>
|
|
<constant>PGSQL_TRANSACTION_INERROR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_transaction_status</function>
|
|
zurückgegeben. Die Verbindung wurde von einer abgebrochenen Transaktion
|
|
benutzt und ist momentan nicht aktiv.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-transaction-unknown">
|
|
<term>
|
|
<constant>PGSQL_TRANSACTION_UNKNOWN</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von der Funktion <function>pg_transaction_status</function>
|
|
zurückgegeben. Die Verbindung ist ungültig.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-severity">
|
|
<term>
|
|
<constant>PGSQL_DIAG_SEVERITY</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Gibt den Schweregrad des Fehlers zurück. Die Feldinhalte sind
|
|
<literal>ERROR</literal>, <literal>FATAL</literal> oder
|
|
<literal>PANIC</literal> (in einer Fehlermeldung) oder
|
|
<literal>WARNING</literal>, <literal>NOTICE</literal>,
|
|
<literal>DEBUG</literal>, <literal>INFO</literal> oder
|
|
<literal>LOG</literal> (in einer Notice-Meldung) oder eine lokalisierte
|
|
Übersetzung davon. Dieses Feld ist immer verfügbar.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-sqlstate">
|
|
<term>
|
|
<constant>PGSQL_DIAG_SQLSTATE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Gibt den SQLSTATE-Code des Fehlers zurück. Der SQLSTATE-Code
|
|
identifiziert den Typ des aufgetretenen Fehlers. Dieser kann von
|
|
Anwendungen ausgewertet werden, um entsprechende Operationen auszuführen
|
|
(beispielsweise Fehlerbehandlungsroutinen), als Reaktion auf einen
|
|
bestimmten Datenbankfehler. dieses Feld kann nicht lokalisiert werden und
|
|
ist immer verfügbar.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-message-primary">
|
|
<term>
|
|
<constant>PGSQL_DIAG_MESSAGE_PRIMARY</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Dies ist die primäre, für Menschen lesbare Fehlermeldung
|
|
(normalerweise in einer Zeile) und ist immer verfügbar.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-message-detail">
|
|
<term>
|
|
<constant>PGSQL_DIAG_MESSAGE_DETAIL</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Detail: eine optionale untergeordnete Fehlermeldung, in der
|
|
das Problem genauer beschrieben wird. Diese Meldung kann mehrere Zeilen
|
|
lang sein.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-message-hint">
|
|
<term>
|
|
<constant>PGSQL_DIAG_MESSAGE_HINT</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Hint: ein optionaler Hinweis, wie mit dem Problem umzugehen
|
|
ist. Dies wurde eingeführt, um (möglicherweise unpassende) Lösungen zur
|
|
Verfügung zu stellen, anstatt harte Fakten, wie bei Details. Diese
|
|
Meldung kann mehrere Zeilen lang sein.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-statement-position">
|
|
<term>
|
|
<constant>PGSQL_DIAG_STATEMENT_POSITION</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Dies ist ein String, der eine dezimale Integerzahl enthält,
|
|
die die Cursorposition des originalen SQL-Strings angibt, an der ein
|
|
Fehler auftrat. Das erste Zeichen hat die Position 1 und zur Bestimmung
|
|
der Positionen werden Zeichen zugrundegelegt und nicht Bytes.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-internal-position">
|
|
<term>
|
|
<constant>PGSQL_DIAG_INTERNAL_POSITION</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Per Definition ist das dasselbe wie das Feld
|
|
<constant>PG_DIAG_STATEMENT_POSITION</constant>, es wird aber benutzt,
|
|
wenn die Cursorposition auf ein intern generiertes Kommando verweist und
|
|
nicht auf eines, das vom Benutzer eingegeben wurde. Das Feld
|
|
<constant>PG_DIAG_INTERNAL_QUERY</constant> wird immer gesetzt, wenn
|
|
dieses Feld gesetzt ist.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-internal-query">
|
|
<term>
|
|
<constant>PGSQL_DIAG_INTERNAL_QUERY</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Dies ist der Text eines fehlgeschlagenen, intern generierten
|
|
Kommandos. Das kann beispielsweise eine SQL-Abfrage sein, die von einer
|
|
PL/pgSQL-Funktion gesendet wurde.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-context">
|
|
<term>
|
|
<constant>PGSQL_DIAG_CONTEXT</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Dies gibt einen Hinweis auf den Kontext, in dem ein Fehler
|
|
auftrat. Gegenwärtig sind Zurückverfolgungen des Aufrufstacks von
|
|
Funktionen aktivierter prozeduraler Sprachen darin enthalten, sowie
|
|
intern generierte Abfragen. Die Ablaufverfolgung enthält einen Eintrag
|
|
pro Zeile, die neuesten Einträge zuerst.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-source-file">
|
|
<term>
|
|
<constant>PGSQL_DIAG_SOURCE_FILE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Dies ist der Name der Datei im PostgreSQL-Quellcode, bei der
|
|
der Fehler gemeldet wurde.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-source-line">
|
|
<term>
|
|
<constant>PGSQL_DIAG_SOURCE_LINE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Die Zeilennummer in der Datei im PostgreSQL-Quellcode, bei der
|
|
der Fehler gemeldet wurde.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-source-function">
|
|
<term>
|
|
<constant>PGSQL_DIAG_SOURCE_FUNCTION</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_error_field</function>
|
|
übergeben. Der Name der Funktion im PostgreSQL-Quellcode, bei der der
|
|
Fehler gemeldet wurde.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-schema-name">
|
|
<term>
|
|
<constant>PGSQL_DIAG_SCHEMA_NAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Verfügbar seit PHP 7.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-table-name">
|
|
<term>
|
|
<constant>PGSQL_DIAG_TABLE_NAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Verfügbar seit PHP 7.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-column-name">
|
|
<term>
|
|
<constant>PGSQL_DIAG_COLUMN_NAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Verfügbar seit PHP 7.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-datatype-name">
|
|
<term>
|
|
<constant>PGSQL_DIAG_DATATYPE_NAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Verfügbar seit PHP 7.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-constraint-name">
|
|
<term>
|
|
<constant>PGSQL_DIAG_CONSTRAINT_NAME</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Verfügbar seit PHP 7.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.pgsql-errors-terse">
|
|
<term>
|
|
<constant>PGSQL_ERRORS_TERSE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_set_error_verbosity</function>
|
|
übergeben. Damit wird festgelegt, dass Fehlermeldungen die Felder
|
|
severity, primary text und position enthalten. Normalerweise passt das
|
|
alles in eine Zeile.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-errors-default">
|
|
<term>
|
|
<constant>PGSQL_ERRORS_DEFAULT</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_set_error_verbosity</function>
|
|
übergeben. Die Standardeinstellung gibt Meldungen mit den oben
|
|
beschriebenen Inhalten zurück, zuzüglich aller Details, Hinweise und
|
|
Kontext-Informationen (dies kann mehrere Zeilen umfassen).
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-errors-verbose">
|
|
<term>
|
|
<constant>PGSQL_ERRORS_VERBOSE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_set_error_verbosity</function>
|
|
übergeben. In diesem Modus werden alle verfügbaren Felder zurückgegeben.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-errors-sqlstate">
|
|
<term>
|
|
<constant>PGSQL_ERRORS_SQLSTATE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_set_error_verbosity</function>.
|
|
übergeben. Enthält nur den Schweregrad des Fehlers und den
|
|
<literal>SQLSTATE</literal>-Fehlercode.
|
|
Wenn kein Fehlercode verfügbar ist, entspricht die Ausgabe der im Modus
|
|
<constant>PGSQL_ERRORS_TERSE</constant>.
|
|
Vor PostgreSQL 11.1 ist die Ausgabe immer dieselbe wie im Modus
|
|
<constant>PGSQL_ERRORS_TERSE</constant>.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.pgsql-notice-last">
|
|
<term>
|
|
<constant>PGSQL_NOTICE_LAST</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Verwendet von <function>pg_last_notice</function>. Verfügbar seit PHP
|
|
7.1.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-notice-all">
|
|
<term>
|
|
<constant>PGSQL_NOTICE_ALL</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Verwendet von <function>pg_last_notice</function>. Verfügbar seit PHP
|
|
7.1.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-notice-clear">
|
|
<term>
|
|
<constant>PGSQL_NOTICE_CLEAR</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Verwendet von <function>pg_last_notice</function>. Verfügbar seit PHP
|
|
7.1.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.pgsql-status-long">
|
|
<term>
|
|
<constant>PGSQL_STATUS_LONG</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_status</function> übergeben.
|
|
Zeigt an, dass ein numerischer Ergebniscode gewünscht ist.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-status-string">
|
|
<term>
|
|
<constant>PGSQL_STATUS_STRING</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_result_status</function> übergeben.
|
|
Zeigt an, dass eine textuelles Ergebnis gewünscht ist.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.pgsql-conv-ignore-default">
|
|
<term>
|
|
<constant>PGSQL_CONV_IGNORE_DEFAULT</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_convert</function> übergeben. Während
|
|
der Konversion werden Standardwerte in der Tabelle ignoriert.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-conv-force-null">
|
|
<term>
|
|
<constant>PGSQL_CONV_FORCE_NULL</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_convert</function> übergeben. Anstelle
|
|
eines leeren Strings <type>string</type> wird der SQL-Nullwert
|
|
<literal>NULL</literal> benutzt.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-conv-ignore-not-null">
|
|
<term>
|
|
<constant>PGSQL_CONV_IGNORE_NOT_NULL</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an die Funktion <function>pg_convert</function> übergeben. Die
|
|
Konversion von &null; in SQL <literal>NOT NULL</literal>-Spalten wird
|
|
ignoriert.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.pgsql-dml-no-conv">
|
|
<term>
|
|
<constant>PGSQL_DML_NO_CONV</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an <function>pg_insert</function>, <function>pg_select</function>,
|
|
<function>pg_update</function> und <function>pg_delete</function>
|
|
übergeben. Alle Parameter werden übergeben wie sie sind. Manuelles
|
|
Maskieren ist erforderlich, wenn Parameter Anwenderdaten enthalten. Dafür
|
|
ist <function>pg_escape_string</function> zu verwenden.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-dml-exec">
|
|
<term>
|
|
<constant>PGSQL_DML_EXEC</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an <function>pg_insert</function>, <function>pg_select</function>,
|
|
<function>pg_update</function> und <function>pg_delete</function>
|
|
übergeben. Führt eine Abfrage durch diese Funktionen aus.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-dml-async">
|
|
<term>
|
|
<constant>PGSQL_DML_ASYNC</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an <function>pg_insert</function>, <function>pg_select</function>,
|
|
<function>pg_update</function> und <function>pg_delete</function>
|
|
übergeben. Führt eine asynchrone Abfrage durch diese Funktionen aus.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-dml-string">
|
|
<term>
|
|
<constant>PGSQL_DML_STRING</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an <function>pg_insert</function>, <function>pg_select</function>,
|
|
<function>pg_update</function> und <function>pg_delete</function>
|
|
übergeben. Gibt den ausgeführten Abfragestring zurück.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-dml-escape">
|
|
<term>
|
|
<constant>PGSQL_DML_ESCAPE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird an <function>pg_insert</function>, <function>pg_select</function>,
|
|
<function>pg_update</function> und <function>pg_delete</function>
|
|
übergeben. Maskiert alle Parameter anstatt
|
|
<function>pg_convert</function> intern aufzurufen. Diese Option
|
|
verzichtet auf das Nachschlagen von Meta-Daten. Die Abfrage kann so
|
|
schnell sein wie <function>pg_query</function> und
|
|
<function>pg_send_query</function>.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-polling-failed">
|
|
<term>
|
|
<constant>PGSQL_POLLING_FAILED</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von <function>pg_connect_poll</function> zurückgegeben, um
|
|
anzuzeigen, dass der Verbindungsversuch fehlschlug.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-polling-reading">
|
|
<term>
|
|
<constant>PGSQL_POLLING_READING</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von <function>pg_connect_poll</function> zurückgegeben, um
|
|
anzuzeigen, dass die Verbindung auf Lesebereitschaft des
|
|
PostgreSQL-Socket wartet.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-polling-writing">
|
|
<term>
|
|
<constant>PGSQL_POLLING_WRITING</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von <function>pg_connect_poll</function> zurückgegeben, um
|
|
anzuzeigen, dass die Verbindung auf Schreibbereitschaft des
|
|
PostgreSQL-Socket wartet.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-polling-ok">
|
|
<term>
|
|
<constant>PGSQL_POLLING_OK</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von <function>pg_connect_poll</function> zurückgegeben, um
|
|
anzuzeigen, dass die Verbindung bereit zur Verwendung ist.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-polling-active">
|
|
<term>
|
|
<constant>PGSQL_POLLING_ACTIVE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird von <function>pg_connect_poll</function> zurückgegeben, um
|
|
anzuzeigen, dass die Verbindung zur Zeit aktiv ist.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-diag-severity-nonlocalized">
|
|
<term>
|
|
<constant>PGSQL_DIAG_SEVERITY_NONLOCALIZED</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Der Schweregrad. Das Feld enthält ERROR, FATAL oder PANIC (in einer
|
|
Fehlermeldung), oder WARNING, NOTICE, DEBUG, INFO oder LOG (in einer
|
|
Hinweismeldung). Dies ist identisch zum PG_DIAG_SEVERITY Feld, außer dass
|
|
der Inhalt nie lokalisiert ist. Es ist nur ab Version 9.6 vorhanden.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-show-context-never">
|
|
<term>
|
|
<constant>PGSQL_SHOW_CONTEXT_NEVER</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird in <function>pg_set_error_context_visibility</function> verwendet,
|
|
damit der Kontext nie angezeigt wird.
|
|
Verfügbar seit PHP 8.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-show-context-errors">
|
|
<term>
|
|
<constant>PGSQL_SHOW_CONTEXT_ERRORS</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird in <function>pg_set_error_context_visibility</function> verwendet,
|
|
damit die Felder des Kontexts nur in Fehlermeldungen enthalten sind. Dies
|
|
ist das standardmäßige Verhalten.
|
|
Verfügbar seit PHP 8.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-show-context-always">
|
|
<term>
|
|
<constant>PGSQL_SHOW_CONTEXT_ALWAYS</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird in <function>pg_set_error_context_visibility</function> verwendet,
|
|
damit die Felder des Kontexts in Fehler-, Hinweis- und Warnmeldungen
|
|
enthalten sind.
|
|
Verfügbar seit PHP 8.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-trace-suppress-timestamps">
|
|
<term>
|
|
<constant>PGSQL_TRACE_SUPPRESS_TIMESTAMPS</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird in <function>pg_trace</function> verwendet, damit der Zeitstempel
|
|
nicht in den Meldungen der Ablaufverfolgung enthalten ist.
|
|
Verfügbar seit PHP 8.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.pgsql-trace-regress-mode">
|
|
<term>
|
|
<constant>PGSQL_TRACE_REGRESS_MODE</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Wird in <function>pg_trace</function> verwendet, damit solche Felder wie
|
|
OIDs in die Meldungen der Ablaufverfolgung aufgenommen werden.
|
|
Verfügbar seit PHP 8.3.0.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</appendix>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|