Commit ba8565e 1 parent c260bef commit ba8565e Copy full SHA for ba8565e
File tree 4 files changed +21
-7
lines changed
4 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: 63916fd88a875a56045117e2a60c723bc8e2ee19 Maintainer: dallas Status: ready -->
3
+ <!-- EN-Revision: 3c6c95fcfd7d9eaa603df40327693ea8dff89d53 Maintainer: dallas Status: ready -->
4
4
<!-- CREDITS: mowangjuanzi, Luffy -->
5
5
<appendix xml : id =" pgsql.constants" xmlns =" http://docbook.org/ns/docbook" >
6
6
&reftitle.constants;
239
239
</simpara >
240
240
</listitem >
241
241
</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 >
242
255
<varlistentry xml : id =" constant.pgsql-copy-out" >
243
256
<term >
244
257
<constant >PGSQL_COPY_OUT</constant >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: 39bb8a868935a56cfce438b0169e13c02c93211c Maintainer: dallas Status: ready -->
3
+ <!-- EN-Revision: 87c67b277e1772956eeb7906f04af18b0284ca7c Maintainer: dallas Status: ready -->
4
4
<!-- CREDITS: mowangjuanzi -->
5
5
<refentry xml : id =" function.pg-fetch-result" xmlns =" http://docbook.org/ns/docbook" >
6
6
<refnamediv >
103
103
<programlisting role =" php" >
104
104
<![CDATA[
105
105
<?php
106
- $db = pg_connect("dbname=users user=me") || die() ;
106
+ $db = pg_connect("dbname=users user=me");
107
107
108
108
$res = pg_query($db, "SELECT 1 UNION ALL SELECT 2");
109
109
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: c2eca73ef79ebe78cebb34053e41b565af504c4f Maintainer: HonestQiao Status: ready -->
3
+ <!-- EN-Revision: b984d790ebed20eb65c7d746dd9bc54b0b356174 Maintainer: HonestQiao Status: ready -->
4
4
<!-- CREDITS: mowangjuanzi -->
5
5
<refentry xml : id =" function.pg-free-result" xmlns =" http://docbook.org/ns/docbook" >
6
6
<refnamediv >
73
73
<programlisting role =" php" >
74
74
<![CDATA[
75
75
<?php
76
- $db = pg_connect("dbname=users user=me") || die() ;
76
+ $db = pg_connect("dbname=users user=me");
77
77
78
78
$res = pg_query($db, "SELECT 1 UNION ALL SELECT 2");
79
79
@@ -102,6 +102,7 @@ First field in the second row is: 2
102
102
<member ><function >pg_query</function ></member >
103
103
<member ><function >pg_query_params</function ></member >
104
104
<member ><function >pg_execute</function ></member >
105
+ <member ><function >pg_result_memory_size</function ></member >
105
106
</simplelist >
106
107
</para >
107
108
</refsect1 >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: c2eca73ef79ebe78cebb34053e41b565af504c4f Maintainer: dallas Status: ready -->
3
+ <!-- EN-Revision: 3c6c95fcfd7d9eaa603df40327693ea8dff89d53 Maintainer: dallas Status: ready -->
4
4
<!-- CREDITS: mowangjuanzi -->
5
5
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.58 -->
6
6
<refentry xml : id =" function.pg-result-status" xmlns =" http://docbook.org/ns/docbook" >
50
50
&reftitle.returnvalues;
51
51
<para >
52
52
如果指定 <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 >
54
54
和 <constant >PGSQL_FATAL_ERROR</constant >。否则,返回包含 PostgreSQL 命令标记的 <type >string</type >。
55
55
</para >
56
56
</refsect1 >
You can’t perform that action at this time.
0 commit comments