<?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: Beware of implicit casting</title>
	<atom:link href="http://code.openark.org/blog/mysql/beware-of-implicit-casting/feed" rel="self" type="application/rss+xml" />
	<link>http://code.openark.org/blog/mysql/beware-of-implicit-casting</link>
	<description>Blog by Shlomi Noach</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:47:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: 23:59:59 is not the end of the day. No, really! &#124; code.openark.org</title>
		<link>http://code.openark.org/blog/mysql/beware-of-implicit-casting/comment-page-1#comment-47206</link>
		<dc:creator>23:59:59 is not the end of the day. No, really! &#124; code.openark.org</dc:creator>
		<pubDate>Wed, 27 Jul 2011 18:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1886#comment-47206</guid>
		<description>[...] do not use LIKE &#8217;2011-07-26 %&#8217;. Read this if you&#8217;re not sure [...]</description>
		<content:encoded><![CDATA[<p>[...] do not use LIKE &#8217;2011-07-26 %&#8217;. Read this if you&#8217;re not sure [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Implicit casting you don&#8217;t want to see around &#124; code.openark.org</title>
		<link>http://code.openark.org/blog/mysql/beware-of-implicit-casting/comment-page-1#comment-15535</link>
		<dc:creator>Implicit casting you don&#8217;t want to see around &#124; code.openark.org</dc:creator>
		<pubDate>Wed, 07 Jul 2010 08:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1886#comment-15535</guid>
		<description>[...] Beware of implicit casting [...]</description>
		<content:encoded><![CDATA[<p>[...] Beware of implicit casting [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 11 MySQL resources you must read!</title>
		<link>http://code.openark.org/blog/mysql/beware-of-implicit-casting/comment-page-1#comment-10426</link>
		<dc:creator>11 MySQL resources you must read!</dc:creator>
		<pubDate>Tue, 09 Feb 2010 17:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1886#comment-10426</guid>
		<description>[...] Beware of implicit casting Ever so often a query provides a “bad” execution plan. Adding a missing index can many times solve the problem. However, not everything can be solved with an index. I wish to highlight the point of having an implicit cast, which negates the use of an index on MySQL. [...]</description>
		<content:encoded><![CDATA[<p>[...] Beware of implicit casting Ever so often a query provides a “bad” execution plan. Adding a missing index can many times solve the problem. However, not everything can be solved with an index. I wish to highlight the point of having an implicit cast, which negates the use of an index on MySQL. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shlomi</title>
		<link>http://code.openark.org/blog/mysql/beware-of-implicit-casting/comment-page-1#comment-10235</link>
		<dc:creator>shlomi</dc:creator>
		<pubDate>Thu, 04 Feb 2010 05:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1886#comment-10235</guid>
		<description>@sbester
Thank you

@Kedare,
driver_license_Registration being an example only; an integer column also has the advantage of low storage requirements, so it&#039;s not all about arithmetics.
But you are right in suggesting this may be the right solution, as I also suggest above. Just note that this may affect other tables as well, which may join to this table using this column.</description>
		<content:encoded><![CDATA[<p>@sbester<br />
Thank you</p>
<p>@Kedare,<br />
driver_license_Registration being an example only; an integer column also has the advantage of low storage requirements, so it's not all about arithmetics.<br />
But you are right in suggesting this may be the right solution, as I also suggest above. Just note that this may affect other tables as well, which may join to this table using this column.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedare</title>
		<link>http://code.openark.org/blog/mysql/beware-of-implicit-casting/comment-page-1#comment-10214</link>
		<dc:creator>Kedare</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:04:57 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1886#comment-10214</guid>
		<description>I recommend you to convert the &quot;driver_license_registration&quot; column to a CHAR/VARCHAR column, numeric fields is just required when you need arithmetic operations (that&#039;s not the case here... I think)</description>
		<content:encoded><![CDATA[<p>I recommend you to convert the "driver_license_registration" column to a CHAR/VARCHAR column, numeric fields is just required when you need arithmetic operations (that's not the case here... I think)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbester</title>
		<link>http://code.openark.org/blog/mysql/beware-of-implicit-casting/comment-page-1#comment-10177</link>
		<dc:creator>sbester</dc:creator>
		<pubDate>Wed, 03 Feb 2010 07:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1886#comment-10177</guid>
		<description>beware of joining two tables on columns with different collations/charsets.  these won&#039;t use an index either.
EXPLAIN EXTENDED followed by SHOW WARNINGS will allow you to catch these cases, since there will be a CONVERT function used...</description>
		<content:encoded><![CDATA[<p>beware of joining two tables on columns with different collations/charsets.  these won't use an index either.<br />
EXPLAIN EXTENDED followed by SHOW WARNINGS will allow you to catch these cases, since there will be a CONVERT function used...</p>
]]></content:encoded>
	</item>
</channel>
</rss>

