<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A DB2 driver for CakePHP</title>
	<atom:link href="http://krook.net/archives/179/feed" rel="self" type="application/rss+xml" />
	<link>http://krook.net/archives/179</link>
	<description>Daniel Krook is an IBM Certified IT Specialist based in the greater New York City area. He has over ten years experience in Web application development and presently builds a cloud infrastructure for IBM using Java EE, DB2, REST, and BlackBerry. He holds certifications in cloud archtecture, PHP, Java EE, BlackBerry, DB2, and Solaris. He occasionally writes PHP-related articles for IBM developerWorks and co-authored the IBM Redbook &#039;Developing PHP Applications for IBM Data Servers.&#039;</description>
	<lastBuildDate>Sat, 17 Mar 2012 10:08:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Siriu</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-123375</link>
		<dc:creator>Siriu</dc:creator>
		<pubDate>Tue, 10 Jan 2012 11:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-123375</guid>
		<description>Is it possible to use it with cakePHP 2 ?</description>
		<content:encoded><![CDATA[<p>Is it possible to use it with cakePHP 2 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Krook</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-52057</link>
		<dc:creator>Daniel Krook</dc:creator>
		<pubDate>Tue, 29 Jul 2008 12:36:53 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-52057</guid>
		<description>Hi Ambrish,

Yes it is.   In fact I just developed a few fixes last night and hope to merge them into SVN shortly.</description>
		<content:encoded><![CDATA[<p>Hi Ambrish,</p>
<p>Yes it is.   In fact I just developed a few fixes last night and hope to merge them into SVN shortly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ambrish Bhargava</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-52033</link>
		<dc:creator>Ambrish Bhargava</dc:creator>
		<pubDate>Tue, 29 Jul 2008 05:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-52033</guid>
		<description>Hi Daniel,

I am wondering if this project is still live?

Thanks,
Ambrish Bhargava</description>
		<content:encoded><![CDATA[<p>Hi Daniel,</p>
<p>I am wondering if this project is still live?</p>
<p>Thanks,<br />
Ambrish Bhargava</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gnujach</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-19631</link>
		<dc:creator>gnujach</dc:creator>
		<pubDate>Mon, 30 Jul 2007 01:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-19631</guid>
		<description>Hi, i can use cakephp with db2 into i5/os?
thank!</description>
		<content:encoded><![CDATA[<p>Hi, i can use cakephp with db2 into i5/os?<br />
thank!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-10247</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Thu, 19 Apr 2007 06:33:10 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-10247</guid>
		<description>Hi Daniel,

I&#039;ve noticed that cake tries to use default schema for logged user.
eg. If i login as db2admin it uses d2admin schema by default.

I submitted another ticket related to enhancement that one could choose current schema at database.php:
https://trac.cakephp.org/ticket/2446</description>
		<content:encoded><![CDATA[<p>Hi Daniel,</p>
<p>I&#8217;ve noticed that cake tries to use default schema for logged user.<br />
eg. If i login as db2admin it uses d2admin schema by default.</p>
<p>I submitted another ticket related to enhancement that one could choose current schema at database.php:<br />
<a href="https://trac.cakephp.org/ticket/2446" rel="nofollow">https://trac.cakephp.org/ticket/2446</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Krook</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-10211</link>
		<dc:creator>Daniel Krook</dc:creator>
		<pubDate>Wed, 18 Apr 2007 12:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-10211</guid>
		<description>Hi Leo,

Thanks for the update.  I&#039;ll check out the ticket and try out a fix.  Your report is very thorough :)</description>
		<content:encoded><![CDATA[<p>Hi Leo,</p>
<p>Thanks for the update.  I&#8217;ll check out the ticket and try out a fix.  Your report is very thorough :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-10146</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Tue, 17 Apr 2007 08:48:41 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-10146</guid>
		<description>Finally i&#039;ve got ibm_db2 extension work together with apache.
(Needed to reboot system in order to get it working)
However PHP CLI didn&#039;t needed rebooting and that confused me quite much :)

Now i&#039;ve tested your example and already made bug report:
https://trac.cakephp.org/ticket/2444

I&#039;m using DB2 express v 9.1.0</description>
		<content:encoded><![CDATA[<p>Finally i&#8217;ve got ibm_db2 extension work together with apache.<br />
(Needed to reboot system in order to get it working)<br />
However PHP CLI didn&#8217;t needed rebooting and that confused me quite much :)</p>
<p>Now i&#8217;ve tested your example and already made bug report:<br />
<a href="https://trac.cakephp.org/ticket/2444" rel="nofollow">https://trac.cakephp.org/ticket/2444</a></p>
<p>I&#8217;m using DB2 express v 9.1.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krook</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-9964</link>
		<dc:creator>krook</dc:creator>
		<pubDate>Fri, 13 Apr 2007 15:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-9964</guid>
		<description>Leo,

The ibm_db2 driver does support CLOBs, it wouldn&#039;t be much use if it didn&#039;t :).   

In fact, one of the tables in the &lt;a href=&quot;http://krook.net/cakephp/db_test_db2.sql&quot; rel=&quot;nofollow&quot;&gt;sample application DDL&lt;/a&gt; I developed to test the CakePHP uses a CLOB field.

From the context of that forum, the older driver that Knut is talking about is the old Unified ODBC driver used with the odbc_* functions, which have many problems, hence the release of a specific DB2 driver (db2_*, ibm_db2 extension).

Please give the &lt;a href=&quot;http://krook.net/archives/180&quot; rel=&quot;nofollow&quot;&gt;sample application&lt;/a&gt; a test, which will show how the CakePHP driver works with CLOB tables in DB2, then try to adapt it to your tables.  

There is also a &lt;a href=&quot;http://www-128.ibm.com/developerworks/forums/dw_forum.jsp?forum=992&amp;cat=51&quot; rel=&quot;nofollow&quot;&gt;forum at developerWorks&lt;/a&gt; that is monitored by the developers of the ibm_db2 extension and the PDO drivers.</description>
		<content:encoded><![CDATA[<p>Leo,</p>
<p>The ibm_db2 driver does support CLOBs, it wouldn&#8217;t be much use if it didn&#8217;t :).   </p>
<p>In fact, one of the tables in the <a href="http://krook.net/cakephp/db_test_db2.sql" rel="nofollow">sample application DDL</a> I developed to test the CakePHP uses a CLOB field.</p>
<p>From the context of that forum, the older driver that Knut is talking about is the old Unified ODBC driver used with the odbc_* functions, which have many problems, hence the release of a specific DB2 driver (db2_*, ibm_db2 extension).</p>
<p>Please give the <a href="http://krook.net/archives/180" rel="nofollow">sample application</a> a test, which will show how the CakePHP driver works with CLOB tables in DB2, then try to adapt it to your tables.  </p>
<p>There is also a <a href="http://www-128.ibm.com/developerworks/forums/dw_forum.jsp?forum=992&#038;cat=51" rel="nofollow">forum at developerWorks</a> that is monitored by the developers of the ibm_db2 extension and the PDO drivers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-9959</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Fri, 13 Apr 2007 12:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-9959</guid>
		<description>I just found some bad news:
http://www.dbforums.com/showthread.php?t=1189508

&quot;Old ibm_db2 interface of PHP does not support CLOBs/LOBs at all.&quot;
&quot;For large objects use the PHP PDO class library&quot;

So basically this means that your interface doesn&#039;t tackle all problems that lie between db2,php and cakephp framework.

It seems that only working setup is to use PHP5&#039;s PDO class library and this in not supported at cakePHP since cake supports PHP 4 as well.. :(

So there are probably two choices:
1. Use PHP5,PDO and DB2 without cakePHP framework
2. Use PHP4/5 and MySQL/PostgreSQL with cakePHP framework?</description>
		<content:encoded><![CDATA[<p>I just found some bad news:<br />
<a href="http://www.dbforums.com/showthread.php?t=1189508" rel="nofollow">http://www.dbforums.com/showthread.php?t=1189508</a></p>
<p>&#8220;Old ibm_db2 interface of PHP does not support CLOBs/LOBs at all.&#8221;<br />
&#8220;For large objects use the PHP PDO class library&#8221;</p>
<p>So basically this means that your interface doesn&#8217;t tackle all problems that lie between db2,php and cakephp framework.</p>
<p>It seems that only working setup is to use PHP5&#8242;s PDO class library and this in not supported at cakePHP since cake supports PHP 4 as well.. :(</p>
<p>So there are probably two choices:<br />
1. Use PHP5,PDO and DB2 without cakePHP framework<br />
2. Use PHP4/5 and MySQL/PostgreSQL with cakePHP framework?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://krook.net/archives/179/comment-page-1#comment-9914</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Thu, 12 Apr 2007 13:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/archives/179#comment-9914</guid>
		<description>Thanks, i will happily contribute my part for this by doing some testing. :)

I haven&#039;t setted up ibm_db2 extension, cause i&#039;ve used this 
odbc_db2 &quot;driver&quot; and at AdoDB page 
(http://phplens.com/adodb/supported.databases.html) it says: 
&quot;Connects to DB2 using generic ODBC extension.&quot;
AdoDB also supports db2 &quot;driver&quot; which is described:
&quot;Uses PHP&#039;s db2-specific extension for better performance.&quot;
Is this the same thing than the ibm_db2 extension (http://pecl.php.net/package/ibm_db2)?</description>
		<content:encoded><![CDATA[<p>Thanks, i will happily contribute my part for this by doing some testing. :)</p>
<p>I haven&#8217;t setted up ibm_db2 extension, cause i&#8217;ve used this<br />
odbc_db2 &#8220;driver&#8221; and at AdoDB page<br />
(<a href="http://phplens.com/adodb/supported.databases.html" rel="nofollow">http://phplens.com/adodb/supported.databases.html</a>) it says:<br />
&#8220;Connects to DB2 using generic ODBC extension.&#8221;<br />
AdoDB also supports db2 &#8220;driver&#8221; which is described:<br />
&#8220;Uses PHP&#8217;s db2-specific extension for better performance.&#8221;<br />
Is this the same thing than the ibm_db2 extension (<a href="http://pecl.php.net/package/ibm_db2" rel="nofollow">http://pecl.php.net/package/ibm_db2</a>)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

