<?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"
	>
<channel>
	<title>Comments on: MySQL Query Cache  WhiteSpace and comments</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/</link>
	<description>Everything about MySQL Performance</description>
	<pubDate>Tue, 02 Dec 2008 17:37:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-257241</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 25 Mar 2008 18:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-257241</guid>
		<description>Thanks indeed there is an option to skip comments now and you should run mysql -c if you want do to this kind of resting with command line client</description>
		<content:encoded><![CDATA[<p>Thanks indeed there is an option to skip comments now and you should run mysql -c if you want do to this kind of resting with command line client</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jenni s</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-257233</link>
		<dc:creator>jenni s</dc:creator>
		<pubDate>Tue, 25 Mar 2008 16:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-257233</guid>
		<description>it's the same:  the perl DBI doesn't strip out whitespace or comments, but it will strip out whitespace at the beginning of comments.</description>
		<content:encoded><![CDATA[<p>it&#8217;s the same:  the perl DBI doesn&#8217;t strip out whitespace or comments, but it will strip out whitespace at the beginning of comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jenni s</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-257230</link>
		<dc:creator>jenni s</dc:creator>
		<pubDate>Tue, 25 Mar 2008 16:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-257230</guid>
		<description>My understanding is that the mysql command line client now has an *option* to pass comments to the server, but it's disabled by default:
http://bugs.mysql.com/bug.php?id=26215

I'm running the 5.0.56 client and server, and from the command line, my comment was stripped out (as seen by the query recorded in the slow query log).  However, when I ran this php script:


I *did* see the comment in the slow log:
# Time: 080325  9:31:43
# User@Host: dbadmin[dbadmin] @ localhost []
# Query_time: 2  Lock_time: 0  Rows_sent: 230400  Rows_examined: 480
select /* my comment */ * from test.WEBSITE a, test.WEBSITE b;</description>
		<content:encoded><![CDATA[<p>My understanding is that the mysql command line client now has an *option* to pass comments to the server, but it&#8217;s disabled by default:<br />
<a href="http://bugs.mysql.com/bug.php?id=26215" rel="nofollow">http://bugs.mysql.com/bug.php?id=26215</a></p>
<p>I&#8217;m running the 5.0.56 client and server, and from the command line, my comment was stripped out (as seen by the query recorded in the slow query log).  However, when I ran this php script:</p>
<p>I *did* see the comment in the slow log:<br />
# Time: 080325  9:31:43<br />
# User@Host: dbadmin[dbadmin] @ localhost []<br />
# Query_time: 2  Lock_time: 0  Rows_sent: 230400  Rows_examined: 480<br />
select /* my comment */ * from test.WEBSITE a, test.WEBSITE b;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-255007</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 21 Mar 2008 03:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-255007</guid>
		<description>As far as I know PHP does not do any conversion to the query passed, so whitespace remains whitespace. Though you're welcome to check it with DBI and let me know if it is different :)</description>
		<content:encoded><![CDATA[<p>As far as I know PHP does not do any conversion to the query passed, so whitespace remains whitespace. Though you&#8217;re welcome to check it with DBI and let me know if it is different <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Swanhart</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-254967</link>
		<dc:creator>Justin Swanhart</dc:creator>
		<pubDate>Thu, 20 Mar 2008 23:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/20/mysql-query-cache-whitespace-and-comments/#comment-254967</guid>
		<description>Is PHP stripping off the whitespace from the front of the query?  I'm curious if your same test run under Perl::DBI would behave consistently with the PHP test.</description>
		<content:encoded><![CDATA[<p>Is PHP stripping off the whitespace from the front of the query?  I&#8217;m curious if your same test run under Perl::DBI would behave consistently with the PHP test.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
