Skip to content

Commit ba8565e

Browse files
committed
Update pgsql
1 parent c260bef commit ba8565e

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

reference/pgsql/constants.xml

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 63916fd88a875a56045117e2a60c723bc8e2ee19 Maintainer: dallas Status: ready -->
3+
<!-- EN-Revision: 3c6c95fcfd7d9eaa603df40327693ea8dff89d53 Maintainer: dallas Status: ready -->
44
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<appendix xml:id="pgsql.constants" xmlns="http://docbook.org/ns/docbook">
66
&reftitle.constants;
@@ -239,6 +239,19 @@
239239
</simpara>
240240
</listitem>
241241
</varlistentry>
242+
<varlistentry xml:id="constant.pgsql-tuples-chunk">
243+
<term>
244+
<constant>PGSQL_TUPLES_CHUNK</constant>
245+
(<type>int</type>)
246+
</term>
247+
<listitem>
248+
<simpara>
249+
由 <function>pg_result_status</function> 返回。表示命令执行完毕,以分块模式返回数据。当设置了
250+
<function>pg_set_chunked_rows_size</function> 时,将返回 <literal>SELECT</literal>
251+
命令。结果集分为多个块,每个块包含预定义的行数。自 PHP 8.4.0 和 libpq 17 起可用。
252+
</simpara>
253+
</listitem>
254+
</varlistentry>
242255
<varlistentry xml:id="constant.pgsql-copy-out">
243256
<term>
244257
<constant>PGSQL_COPY_OUT</constant>

reference/pgsql/functions/pg-fetch-result.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 39bb8a868935a56cfce438b0169e13c02c93211c Maintainer: dallas Status: ready -->
3+
<!-- EN-Revision: 87c67b277e1772956eeb7906f04af18b0284ca7c Maintainer: dallas Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.pg-fetch-result" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -103,7 +103,7 @@
103103
<programlisting role="php">
104104
<![CDATA[
105105
<?php
106-
$db = pg_connect("dbname=users user=me") || die();
106+
$db = pg_connect("dbname=users user=me");
107107
108108
$res = pg_query($db, "SELECT 1 UNION ALL SELECT 2");
109109

reference/pgsql/functions/pg-free-result.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: c2eca73ef79ebe78cebb34053e41b565af504c4f Maintainer: HonestQiao Status: ready -->
3+
<!-- EN-Revision: b984d790ebed20eb65c7d746dd9bc54b0b356174 Maintainer: HonestQiao Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<refentry xml:id="function.pg-free-result" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -73,7 +73,7 @@
7373
<programlisting role="php">
7474
<![CDATA[
7575
<?php
76-
$db = pg_connect("dbname=users user=me") || die();
76+
$db = pg_connect("dbname=users user=me");
7777
7878
$res = pg_query($db, "SELECT 1 UNION ALL SELECT 2");
7979
@@ -102,6 +102,7 @@ First field in the second row is: 2
102102
<member><function>pg_query</function></member>
103103
<member><function>pg_query_params</function></member>
104104
<member><function>pg_execute</function></member>
105+
<member><function>pg_result_memory_size</function></member>
105106
</simplelist>
106107
</para>
107108
</refsect1>

reference/pgsql/functions/pg-result-status.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: c2eca73ef79ebe78cebb34053e41b565af504c4f Maintainer: dallas Status: ready -->
3+
<!-- EN-Revision: 3c6c95fcfd7d9eaa603df40327693ea8dff89d53 Maintainer: dallas Status: ready -->
44
<!-- CREDITS: mowangjuanzi -->
55
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 -->
66
<refentry xml:id="function.pg-result-status" xmlns="http://docbook.org/ns/docbook">
@@ -50,7 +50,7 @@
5050
&reftitle.returnvalues;
5151
<para>
5252
如果指定 <constant>PGSQL_STATUS_LONG</constant>,可能返回的值是
53-
<constant>PGSQL_EMPTY_QUERY</constant>、<constant>PGSQL_COMMAND_OK</constant>、<constant>PGSQL_TUPLES_OK</constant>、<constant>PGSQL_COPY_OUT</constant>、<constant>PGSQL_COPY_IN</constant>、<constant>PGSQL_BAD_RESPONSE</constant>、<constant>PGSQL_NONFATAL_ERROR</constant>
53+
<constant>PGSQL_EMPTY_QUERY</constant>、<constant>PGSQL_COMMAND_OK</constant>、<constant>PGSQL_TUPLES_OK</constant>、<constant>PGSQL_TUPLES_CHUNK</constant>、<constant>PGSQL_COPY_OUT</constant>、<constant>PGSQL_COPY_IN</constant>、<constant>PGSQL_BAD_RESPONSE</constant>、<constant>PGSQL_NONFATAL_ERROR</constant>
5454
和 <constant>PGSQL_FATAL_ERROR</constant>。否则,返回包含 PostgreSQL 命令标记的 <type>string</type>。
5555
</para>
5656
</refsect1>

0 commit comments

Comments
 (0)