<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 13:17:34 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Christopher Jones' Blog: New PDO_OCI Attributes]]></title>
      <guid>http://www.phpdeveloper.org/news/8684</guid>
      <link>http://www.phpdeveloper.org/news/8684</link>
      <description><![CDATA[<p>
<i>Christopher Jones</i> <a href="http://blogs.oracle.com/opal/2007/09/18#a207">talkes about</a> some updates that he's made to the default PDO functionality of PHP, adding in a few things like pre-fetching and methods to get the details of the database server you're using.
</p>
<blockquote>
After PHP 5.2.4 shipped and a new release cycle began, I merged a couple of enhancements to PDO_OCI attribute handling.  Specifically I added $dbh->getAttribute() support for ATTR_SERVER_VERSION, ATTR_SERVER_INFO, ATTR_CLIENT_VERSION and. ATTR_AUTOCOMMIT.  At the moment these are only available in the PHP snapshots on <a href="http://snaps.php.net/">http://snaps.php.net/</a>. Let me know if there are any issues so they can be resolved before the next PHP release.
</blockquote>
<p>
He gives examples of two things - the pre-fetching functionality, allowing for better optimization for a query, and the transaction management features, making it as simple as a try{} block to test the commit and rollback if needed.
</p>
<p>
He also mentions other properties/attributes included in the new release - ATTR_PERSISTENT, ATTR_TIMEOUT, ATTR_ORACLE_NULLS, ATTR_CASE and ATTR_ERRMODE, ATTR_SERVER_VERSION and ATTR_CLIENT_VERSION (the last two have examples).
</p>]]></description>
      <pubDate>Wed, 19 Sep 2007 09:37:00 -0500</pubDate>
    </item>
  </channel>
</rss>
