<?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: Auto-updater for PDO For WordPress</title>
	<atom:link href="https://rathercurious.no3.co.uk/archives/31/feed" rel="self" type="application/rss+xml" />
	<link>https://rathercurious.no3.co.uk/archives/31</link>
	<description>A home for my coding projects</description>
	<lastBuildDate>Fri, 26 Feb 2010 22:24:46 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.16</generator>
	<item>
		<title>By: Matthieu</title>
		<link>https://rathercurious.no3.co.uk/archives/31/comment-page-1#comment-2051</link>
		<dc:creator><![CDATA[Matthieu]]></dc:creator>
		<pubDate>Tue, 31 Mar 2009 16:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://rathercurious.net/archives/31#comment-2051</guid>
		<description><![CDATA[hi justin,can i get the new version please please please? :)]]></description>
		<content:encoded><![CDATA[<p>hi justin,can i get the new version please please please? <img src="https://rathercurious.no3.co.uk/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>https://rathercurious.no3.co.uk/archives/31/comment-page-1#comment-1963</link>
		<dc:creator><![CDATA[Justin]]></dc:creator>
		<pubDate>Wed, 25 Mar 2009 21:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://rathercurious.net/archives/31#comment-1963</guid>
		<description><![CDATA[@Tomas: 
indeed, something has changed in WP.  and it breaks older versions of my plugin.  
I have emailed you an alternative version]]></description>
		<content:encoded><![CDATA[<p>@Tomas:<br />
indeed, something has changed in WP.  and it breaks older versions of my plugin.<br />
I have emailed you an alternative version</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomas</title>
		<link>https://rathercurious.no3.co.uk/archives/31/comment-page-1#comment-1962</link>
		<dc:creator><![CDATA[Tomas]]></dc:creator>
		<pubDate>Wed, 25 Mar 2009 20:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://rathercurious.net/archives/31#comment-1962</guid>
		<description><![CDATA[Hello Justin, after several months I eventually managed to do some progress on my Wordpress page. At first I published a post with a guide how to solve the problem with archive function from my comment above. URL is http://linux.fjfi.cvut.cz/~tomik/personal/?p=61 , you can find another 2 post about wordpress there.

Second: I tried to upgrade to WP 2.7.1 and I get error message:

Warning: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource in /home/tomik/public_html/wordpress/wp-includes/wp-db.php on line 982

It seems that something has changed in WP. Do you plan to publish any new version of PDO?]]></description>
		<content:encoded><![CDATA[<p>Hello Justin, after several months I eventually managed to do some progress on my WordPress page. At first I published a post with a guide how to solve the problem with archive function from my comment above. URL is <a href="http://linux.fjfi.cvut.cz/~tomik/personal/?p=61" rel="nofollow">http://linux.fjfi.cvut.cz/~tomik/personal/?p=61</a> , you can find another 2 post about wordpress there.</p>
<p>Second: I tried to upgrade to WP 2.7.1 and I get error message:</p>
<p>Warning: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource in /home/tomik/public_html/wordpress/wp-includes/wp-db.php on line 982</p>
<p>It seems that something has changed in WP. Do you plan to publish any new version of PDO?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>https://rathercurious.no3.co.uk/archives/31/comment-page-1#comment-1006</link>
		<dc:creator><![CDATA[Justin]]></dc:creator>
		<pubDate>Mon, 06 Oct 2008 13:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://rathercurious.net/archives/31#comment-1006</guid>
		<description><![CDATA[Tomas - you&#039;ve uncovered a bug that is mostly in the WP core rather than my code.  it is not seen normally as mysql is pretty type agnostic when running comparison queries.  it is because sqlite is typeless that it enforces comparison operations more strictly.

i have code that is untested but that others have reported successfully fixes this problem.  i&#039;ve discussed it elsewhere on this blog too.  I&#039;m happy to send you a copy if you would be willing to provide feedback.

the preg_last_error is used only for debugging.  i was getting some problematic recursive errors on the processing of complex create statements, and wanted to see what was going on.  it is not necessary in ordinary usage.]]></description>
		<content:encoded><![CDATA[<p>Tomas &#8211; you&#8217;ve uncovered a bug that is mostly in the WP core rather than my code.  it is not seen normally as mysql is pretty type agnostic when running comparison queries.  it is because sqlite is typeless that it enforces comparison operations more strictly.</p>
<p>i have code that is untested but that others have reported successfully fixes this problem.  i&#8217;ve discussed it elsewhere on this blog too.  I&#8217;m happy to send you a copy if you would be willing to provide feedback.</p>
<p>the preg_last_error is used only for debugging.  i was getting some problematic recursive errors on the processing of complex create statements, and wanted to see what was going on.  it is not necessary in ordinary usage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomas</title>
		<link>https://rathercurious.no3.co.uk/archives/31/comment-page-1#comment-1005</link>
		<dc:creator><![CDATA[Tomas]]></dc:creator>
		<pubDate>Mon, 06 Oct 2008 13:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://rathercurious.net/archives/31#comment-1005</guid>
		<description><![CDATA[Hello Justin, here are my several more comments:
ad 1 (database folder) - the standard installation (2.6.2) has drwxr-xr-x permissions on wp-content, so it didn&#039;t create the folder database. It is a minor issue as I can create the folder manually.

ad 2 (preg_last_error) I just replaced the calling of preg_last_error with zero. I hope I didn&#039;t break something important.

I had a problem with archives function in wordpress. Using the sqlite database, it simply does not work. The critical part of the query is created in file wp-includes/query.php, lines 884 to 894.
Here is an excerpt from the debug file:
Raw query:     Select  count(*) from  wp_posts  WHERE 1=1  AND YEAR(wp_posts.post_date)=2008 AND MONTH(wp_posts.post_date)=01 AND  .....

Rewritten: Select  count(*) from  wp_posts  WHERE 1=1  AND strftime(&#039;%Y&#039;,wp_posts.post_date) =2008 AND strftime(&#039;%m&#039;,wp_posts.post_date) =01 ....

Notice that the numbers 2008 and 01 are not quoted and the sqlite founds nothing. When I added the quotes in the original WP file, it worked well. I think there is probably difference in the return values of functions YEAR and MONTH on one side and strftime() on the other side. I don&#039;t know how hard it would be to do proper handling in the Sqlite  PDO driver. Sqlite is almost typeless, which may lead to problems.]]></description>
		<content:encoded><![CDATA[<p>Hello Justin, here are my several more comments:<br />
ad 1 (database folder) &#8211; the standard installation (2.6.2) has drwxr-xr-x permissions on wp-content, so it didn&#8217;t create the folder database. It is a minor issue as I can create the folder manually.</p>
<p>ad 2 (preg_last_error) I just replaced the calling of preg_last_error with zero. I hope I didn&#8217;t break something important.</p>
<p>I had a problem with archives function in wordpress. Using the sqlite database, it simply does not work. The critical part of the query is created in file wp-includes/query.php, lines 884 to 894.<br />
Here is an excerpt from the debug file:<br />
Raw query:     Select  count(*) from  wp_posts  WHERE 1=1  AND YEAR(wp_posts.post_date)=2008 AND MONTH(wp_posts.post_date)=01 AND  &#8230;..</p>
<p>Rewritten: Select  count(*) from  wp_posts  WHERE 1=1  AND strftime(&#8216;%Y&#8217;,wp_posts.post_date) =2008 AND strftime(&#8216;%m&#8217;,wp_posts.post_date) =01 &#8230;.</p>
<p>Notice that the numbers 2008 and 01 are not quoted and the sqlite founds nothing. When I added the quotes in the original WP file, it worked well. I think there is probably difference in the return values of functions YEAR and MONTH on one side and strftime() on the other side. I don&#8217;t know how hard it would be to do proper handling in the Sqlite  PDO driver. Sqlite is almost typeless, which may lead to problems.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
