svn: /phpdoc/en/trunk/reference/pdo_cubrid/ constants.xml reference.xml
| From: | Esen Sagynov | Date: | Wed, 27 Apr 2011 02:01:53 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pdo_cubrid/ constants.xml reference.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8009@lists.php.net to get a copy of this message | ||
cubrid Wed, 27 Apr 2011 02:01:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310532
Log:
update docs for CUBRID PHP 2008 R4.0
Changed paths:
U phpdoc/en/trunk/reference/pdo_cubrid/constants.xml
U phpdoc/en/trunk/reference/pdo_cubrid/reference.xml
Modified: phpdoc/en/trunk/reference/pdo_cubrid/constants.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo_cubrid/constants.xml 2011-04-26 23:18:13 UTC (rev 310531)
+++ phpdoc/en/trunk/reference/pdo_cubrid/constants.xml 2011-04-27 02:01:53 UTC (rev 310532)
@@ -4,6 +4,91 @@
&reftitle.constants;
&pdo.driver-constants;
<para>
+ The following constants can be used when setting the database attribute.
+ They can be passed to <function>PDO::getAttribute</function> or
+ <function>PDO::setAttribute</function>.
+ <table>
+ <title>PDO::CUBRID attribute flags</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Constant</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>PDO::CUBRID_ATTR_ISOLATION_LEVEL</entry>
+ <entry>Transaction isolation level for the database connection.</entry>
+ </row>
+ <row>
+ <entry>PDO::CUBRID_ATTR_LOCK_TIMEOUT</entry>
+ <entry>Transaction timeout in seconds.</entry>
+ </row>
+ <row>
+ <entry>PDO::CUBRID_ATTR_MAX_STRING_LENGTH</entry>
+ <entry>Read only. The maximum string length for bit, varbit, char,
+ varchar, nchar, nchar varying data types when using CUBRID PDO
+ API.</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+
+ <para>
+ The following constants can be used when setting the transaction isolation
+ level. They can be passed to <function>PDO::getAttribute</function> or
+ returned by <function>PDO::setAttribute</function>.
+ <table>
+ <title>PDO::CUBRID isolation level flags</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Constant</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>PDO::TRAN_COMMIT_CLASS_UNCOMMIT_INSTANCE</entry>
+ <entry>The lowest isolation level (1). A dirty, non-repeatable or
+ phantom read may occur for the tuple and a non-repeatable read may
+ occur for the table as well.</entry>
+ </row>
+ <row>
+ <entry>PDO::TRAN_COMMIT_CLASS_COMMIT_INSTANCE</entry>
+ <entry>A relatively low isolation level (2). A dirty read does not
+ occur, but non-repeatable or phantom read may occur.</entry>
+ </row>
+ <row>
+ <entry>PDO::TRAN_REP_CLASS_UNCOMMIT_INSTANCE</entry>
+ <entry>The default isolation of CUBRID (3). A dirty, non-repeatable or
+ phantom read may occur for the tuple, but repeatable read is ensured
+ for the table.</entry>
+ </row>
+ <row>
+ <entry>PDO::TRAN_REP_CLASS_COMMIT_INSTANCE</entry>
+ <entry>A relatively low isolation level (4). A dirty read does not
+ occur, but non-repeatable or phantom read may.</entry>
+ </row>
+ <row>
+ <entry>PDO::TRAN_REP_CLASS_REP_INSTANCE</entry>
+ <entry>A relatively high isolation level (5). A dirty or non-repeatable
+ read does not occur, but a phantom read may.</entry>
+ </row>
+ <row>
+ <entry>PDO::TRAN_SERIALIZABLE</entry>
+ <entry>The highest isolation level (6). Problems concerning concurrency
+ (e.g. dirty read, non-repeatable read, phantom read, etc.) do not
+ occur.</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+
+ <para>
The following constants can be used when getting schema information. They
can be passed to <function>PDO::cubrid_schema</function>.
<table>
Modified: phpdoc/en/trunk/reference/pdo_cubrid/reference.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo_cubrid/reference.xml 2011-04-26 23:18:13 UTC (rev 310531)
+++ phpdoc/en/trunk/reference/pdo_cubrid/reference.xml 2011-04-27 02:01:53 UTC (rev 310532)
@@ -53,14 +53,15 @@
<entry>Autocommit_mode and Transaction</entry>
<entry>
PDO_CUBRID supports both autocommit_mode and transaction, and
- autocommit_mode is enable by default. You can use
+ autocommit_mode is disabled by default. You can use
<function>PDO::setAttribute</function> to change its state.
<para>
- If you use PDO::beginTransaction to begin a transaction, it will
- disable autocommit_mode and restore it after PDO::commit or
- PDO::rollBack. Note that before disabling the autocommit_mode, any
- pending work is automatically committed.
+ If you use <function>PDO::beginTransaction</function> to begin a
+ transaction, it will disable autocommit_mode automatically and
+ restore it after <function>PDO::commit</function> or
+ <function>PDO::rollBack</function>. Note that before disabling the
+ autocommit_mode, any pending work is automatically committed.
</para>
</entry>
</row>
@@ -71,8 +72,7 @@
</row>
<row>
<entry>Schema Information</entry>
- <entry>PDO_CUBRID doesn't implement PDOStatement->getColumnMeta.
- Instead, PDO_CUBRID implements a function
+ <entry>PDO_CUBRID implements a function
<function>PDO::cubrid_schema</function> to get schema information.
</entry>
</row>
@@ -119,6 +119,29 @@
</para>
</entry>
</row>
+ <row>
+ <entry>Column meta</entry>
+ <entry>
+ The <function>PDOStatement::getColumnMeta</function> in CUBRID PDO
+ will return an associative array containing the following values:
+ <simplelist>
+ <member>type</member>
+ <member>name</member>
+ <member>table</member>
+ <member>def</member>
+ <member>precision</member>
+ <member>scale</member>
+ <member>not_null</member>
+ <member>auto_increment</member>
+ <member>unique_key</member>
+ <member>multiple_key</member>
+ <member>primary_key</member>
+ <member>foreign_key</member>
+ <member>reverse_index</member>
+ <member>reverse_unique</member>
+ </simplelist>
+ </entry>
+ </row>
</tbody>
</tgroup>
</table>