<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fabrizio Balliano &#187; PDO</title>
	<atom:link href="http://fabrizioballiano.net/tag/pdo/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabrizioballiano.net</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 11:01:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>If I was the Zend CTO</title>
		<link>http://fabrizioballiano.net/2007/07/28/if-i-was-the-zend-cto/</link>
		<comments>http://fabrizioballiano.net/2007/07/28/if-i-was-the-zend-cto/#comments</comments>
		<pubDate>Sat, 28 Jul 2007 16:01:03 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[Programming languages]]></category>
		<category><![CDATA[Unicode]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.fabrizioballiano.net/2007/07/28/if-i-was-the-zend-cto/</guid>
		<description><![CDATA[I&#8217;d hire 5 programmers to finish PHP unicode support in 2 months I&#8217;d hire 5 programmers to clean up the database drivers and fix some PDO problems within 4 months, so also PHP could have a great DB interface like jdbc or ado I&#8217;d hire 2 programmers to add a full abstraction layer to Zend_DB [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>I&#8217;d hire 5 programmers to finish <a href="http://www.fabrizioballiano.net/2007/07/18/hey-php-guys-do-you-remember-unicode/">PHP unicode support</a> in 2 months</li>
<li>I&#8217;d hire 5 programmers to <a href="http://www.fabrizioballiano.net/2007/06/14/redundancy-in-php-db-drivers/">clean up the database drivers</a> and fix <a href="http://www.fabrizioballiano.net/2007/06/06/a-big-lack-in-php-pdo/">some PDO problems</a> within 4 months, so also PHP could have a great DB interface like jdbc or ado</li>
<li>I&#8217;d hire 2 programmers to add a <a href="http://www.fabrizioballiano.net/2007/06/13/what-is-lacking-in-zend_db-to-make-it-a-full-abstraction-layer/">full abstraction layer to Zend_DB</a></li>
<li>I&#8217;d drop the old Zend Studio and focus on <a href="http://www.eclipse.org/pdt/">Eclipse PDT</a></li>
<li>I&#8217;d start a PHP development blog, people need to know where developers are going</li>
</ul>
<p>This is just my opinion working every day with PHP for many purposes since 7 years.</p>
<p>PS: Surely also SOAP support needs attention but it seems they&#8217;re working on it.</p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;title=If%20I%20was%20the%20Zend%20CTO" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;title=If%20I%20was%20the%20Zend%20CTO" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;t=If%20I%20was%20the%20Zend%20CTO" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;title=If%20I%20was%20the%20Zend%20CTO" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;title=If%20I%20was%20the%20Zend%20CTO" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;title=If%20I%20was%20the%20Zend%20CTO" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;title=If%20I%20was%20the%20Zend%20CTO" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;title=If%20I%20was%20the%20Zend%20CTO" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F07%2F28%2Fif-i-was-the-zend-cto%2F&amp;h=If%20I%20was%20the%20Zend%20CTO" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2007/07/28/if-i-was-the-zend-cto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redundancy in PHP DB drivers</title>
		<link>http://fabrizioballiano.net/2007/06/14/redundancy-in-php-db-drivers/</link>
		<comments>http://fabrizioballiano.net/2007/06/14/redundancy-in-php-db-drivers/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 12:11:30 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[Programming languages]]></category>

		<guid isPermaLink="false">http://www.fabrizioballiano.net/2007/06/14/redundancy-in-php-db-drivers/</guid>
		<description><![CDATA[Once upon a time PHP had several different DB drivers such as: mysql pgsql mssql oci sqlite odbc informix firebird Later came mysqli oci8 and we already had duplicated drivers (also if they have some different optimizations/features) Later came PDO and we had pdo_mysql pdo_pgsql pdo_mssql pdo_oci pdo_oci8 pdo_sqlite pdo_odbc pdo_informix pdo_firebird so now we [...]]]></description>
			<content:encoded><![CDATA[<p>Once upon a time PHP had several different DB drivers such as:</p>
<ul>
<li>mysql</li>
<li>pgsql</li>
<li>mssql</li>
<li>oci</li>
<li>sqlite</li>
<li>odbc</li>
<li>informix</li>
<li>firebird</li>
</ul>
<p>Later came</p>
<ul>
<li>mysqli</li>
<li>oci8</li>
</ul>
<p>and we already had duplicated drivers (also if they have some different optimizations/features)</p>
<p>Later came PDO and we had</p>
<ul>
<li>pdo_mysql</li>
<li>pdo_pgsql</li>
<li>pdo_mssql</li>
<li>pdo_oci</li>
<li>pdo_oci8</li>
<li>pdo_sqlite</li>
<li>pdo_odbc</li>
<li>pdo_informix</li>
<li>pdo_firebird</li>
</ul>
<p>so now we have 4 drivers only for oracle (oci, oci8, pdo_oci, pdo_oci8) and 3 for mysql (mysql, mysqli, pdo_mysql) and anyway every driver is at least duplicated.</p>
<p>I don&#8217;t think this is the right way to go on, if PDO is here to remain, first all bugs in pdo should be solved and PDO features should reflect the single driver feature (I wrote about about that yesterday), then old drivers should be removed. Duplicated oci/oci8 driver should be unified too.</p>
<p>Now the situation is confusing and it&#8217;s difficult to test things against different drivers, tracking and solving bugs.</p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;title=Redundancy%20in%20PHP%20DB%20drivers" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;title=Redundancy%20in%20PHP%20DB%20drivers" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;t=Redundancy%20in%20PHP%20DB%20drivers" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;title=Redundancy%20in%20PHP%20DB%20drivers" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;title=Redundancy%20in%20PHP%20DB%20drivers" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;title=Redundancy%20in%20PHP%20DB%20drivers" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;title=Redundancy%20in%20PHP%20DB%20drivers" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;title=Redundancy%20in%20PHP%20DB%20drivers" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F14%2Fredundancy-in-php-db-drivers%2F&amp;h=Redundancy%20in%20PHP%20DB%20drivers" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2007/06/14/redundancy-in-php-db-drivers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A big lack in PHP PDO</title>
		<link>http://fabrizioballiano.net/2007/06/06/a-big-lack-in-php-pdo/</link>
		<comments>http://fabrizioballiano.net/2007/06/06/a-big-lack-in-php-pdo/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 12:42:22 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[Programming languages]]></category>

		<guid isPermaLink="false">http://www.fabrizioballiano.net/2007/06/06/a-big-lack-in-php-pdo/</guid>
		<description><![CDATA[It seems to me that none in the world needs to get meta-info from a query like this: SELECT * FROM table1 JOIN table2 ON (table1.id=table2.id) I need to know from which table are the returned columns from. That&#8217;s not possible. It was possible with some old PHP DB drivers (not for all and I [...]]]></description>
			<content:encoded><![CDATA[<p>It seems to me that none in the world needs to get meta-info from a query like this:</p>
<p><code>SELECT * FROM table1 JOIN table2 ON (table1.id=table2.id)</code></p>
<p>I need to know from which table are the returned columns from. That&#8217;s not possible. It was possible with some old PHP DB drivers (not for all and I can&#8217;t understand why) but it&#8217;s not possible with PDO (and also <a href="http://framework.zend.com/manual/en/zend.db.html">Zend_DB</a> does <a href="http://framework.zend.com/manual/en/zend.db.table.html#zend.db.table.info">strange things about that but it&#8217;s very limited</a>).</p>
<p>Let&#8217;s look at the situation, PDO has the <a href="http://it.php.net/manual/en/function.PDOStatement-getColumnMeta.php">PDOStatement-&gt;getColumnMeta()</a> method but:</p>
<ul>
<li>This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.</li>
<li>Not all PDO drivers support PDOStatement-&gt;getColumnMeta().</li>
<li>withit the returned data there isn&#8217;t the table name</li>
</ul>
<p>I <a href="http://bugs.php.net/bug.php?id=41416">filled a bug</a> some time ago and some developer add that feature for MySQL but they don&#8217;t understand that it&#8217;s needed for every DB adapter and it was already done by some old functions.</p>
<p>Maybe no PHP developer need such kind of abstraction.</p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;title=A%20big%20lack%20in%20PHP%20PDO" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;title=A%20big%20lack%20in%20PHP%20PDO" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;t=A%20big%20lack%20in%20PHP%20PDO" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;title=A%20big%20lack%20in%20PHP%20PDO" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;title=A%20big%20lack%20in%20PHP%20PDO" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;title=A%20big%20lack%20in%20PHP%20PDO" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;title=A%20big%20lack%20in%20PHP%20PDO" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;title=A%20big%20lack%20in%20PHP%20PDO" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2007%2F06%2F06%2Fa-big-lack-in-php-pdo%2F&amp;h=A%20big%20lack%20in%20PHP%20PDO" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2007/06/06/a-big-lack-in-php-pdo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
