Skip to content

Commit

Permalink
Sync pdo (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Dec 29, 2023
1 parent 5c697c1 commit 9339ae6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions reference/pdo/pdo/getattribute.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 661e6858acade9f5a08fc8f9c07b605f42f4a700 Maintainer: anonymous #27375 Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 5bef6e3f51b6add9f9f27ad65409b66f6ab44af7 Maintainer: anonymous Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="pdo.getattribute" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>PDO::getAttribute</refname>
Expand Down Expand Up @@ -67,6 +67,14 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
当底层驱动程序不支持请求的 <parameter>attribute</parameter> 时,
<methodname>PDO::getAttribute</methodname> 可能会抛出 <exceptionname>PDOException</exceptionname>。
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down
6 changes: 3 additions & 3 deletions reference/pdo/pdostatement/setfetchmode.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 0ce949d098c21c0109d289c372cc02d12228dbd3 Maintainer: anonymous #27375 Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: b4756524479423ee3118adec1effa89171a9ffda Maintainer: anonymous Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="pdostatement.setfetchmode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>PDOStatement::setFetchMode</refname>
Expand Down Expand Up @@ -45,7 +45,7 @@
<term><parameter>mode</parameter></term>
<listitem>
<para>
获取模式必须是 <literal>PDO::FETCH_*</literal> 系列常量中的一个
获取模式必须是 <link linkend="pdo.constants"><constant>PDO::FETCH_<replaceable>*</replaceable></constant></link> 常量中的一个
</para>
</listitem>
</varlistentry>
Expand Down

0 comments on commit 9339ae6

Please sign in to comment.