<?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 06:36:05 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Jones' Blog: Inserting and Updating Oracle XMLType columns in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12858</guid>
      <link>http://www.phpdeveloper.org/news/12858</link>
      <description><![CDATA[<p>
All of you Oracle users out there might want to check out <a href="http://blogs.oracle.com/opal/2009/07/inserting_and_updating_oracle_1.html">this recent post</a> from <i>Chris Jones</i>, especially if you've been using the XMLType columns in your tables.
</p>
<blockquote>
Today a reader mailed me about manipulating XMLType columns when the data is longer than the 4K limit that character-type handling imposes. My free book (see sidebar) has examples of how to do this using CLOB handling in PHP. I noticed that my xmlinsert.php example in the book does a SELECT and UPDATE, but never actually does an INSERT.
</blockquote>
<p>
To correct the problem of the missing example he includes <a href="http://blogs.oracle.com/opal/2009/07/inserting_and_updating_oracle_1.html">example code</a> to connect to the database, push the XML into a bind variable and select the row back out to ensure everything's still structured correctly. You need to set up a new descriptor for the insert to work (CLOB).
</p>]]></description>
      <pubDate>Mon, 13 Jul 2009 08:14:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Maggie Nelson's Blog: PDO_OCI does not support CLOBs]]></title>
      <guid>http://www.phpdeveloper.org/news/8091</guid>
      <link>http://www.phpdeveloper.org/news/8091</link>
      <description><![CDATA[<p>
After struggling with it for a good while, <i>Maggie Nelson</i> finally figured out the answer to her problems with Oracle, PDO and CLOBs - <a href="http://www.objectivelyoriented.com/2007/06/pdo_oci_does_not_support_clobs.html">they're just not supported</a>.
</p>
<blockquote>
<a href="http://netevil.org/uuid/4365876a-cee9-3009-7726-365876a51802">LOB support was added to PDO_OCI</a> in PHP 5.1. This is really cool, however, it appears that the LOB support really means BLOB support. After much investigation and self-doubt (e.g. "what if we're using streams incorrectly?"), we found out that PDO_OCI does not currently support CLOBs (BLOBs only!).
</blockquote>
<p>
The bug's <a href="http://pecl.php.net/bugs/bug.php?id=7943">already been documented</a> and remains open, but <i>Maggie</i> encourages all of the Oracle developers out there with the fact that <a href="http://blogs.oracle.com/opal/">Chris Jones</a> (of Oracle) knows about the issue and plans to correct it in the next release of the extension.
</p>]]></description>
      <pubDate>Wed, 20 Jun 2007 14:07:03 -0500</pubDate>
    </item>
  </channel>
</rss>
