cvs: phpdoc /en/reference/pdo reference.xml
| From: | Ben Ramsey | Date: | Tue, 30 Oct 2007 17:05:59 +0000 |
| Subject: | cvs: phpdoc /en/reference/pdo reference.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-320@lists.php.net to get a copy of this message | ||
ramsey Tue Oct 30 17:05:59 2007 UTC
Modified files:
/phpdoc/en/reference/pdo reference.xml
Log:
Adding note about usage of PDO::ATTR_PERSISTENT in the constructor vs. PDO->setAttribute
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pdo/reference.xml?r1=1.58&r2=1.59&diff_format=u
Index: phpdoc/en/reference/pdo/reference.xml
diff -u phpdoc/en/reference/pdo/reference.xml:1.58 phpdoc/en/reference/pdo/reference.xml:1.59
--- phpdoc/en/reference/pdo/reference.xml:1.58 Sat Jun 30 14:14:03 2007
+++ phpdoc/en/reference/pdo/reference.xml Tue Oct 30 17:05:59 2007
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.58 $ -->
+<!-- $Revision: 1.59 $ -->
<!-- Purpose: database.abstract -->
<!-- Membership: pecl, bundled -->
@@ -200,6 +200,15 @@
</para>
<note>
<para>
+ If you wish to use persistent connections, you must set
+ <constant>PDO::ATTR_PERSISTENT</constant> in the array of driver options
+ passed to the PDO constructor. If setting this attribute with
+ <xref linkend="function.PDO-setAttribute" /> after instantiation of the
+ object, the driver will not use persistent connections.
+ </para>
+ </note>
+ <note>
+ <para>
If you're using the PDO ODBC driver and your ODBC libraries support ODBC
Connection Pooling (unixODBC and Windows are two that do; there may be
more), then it's recommended that you don't use persistent PDO