<?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>asmw.de &#187; mysql</title>
	<atom:link href="http://asmw.de/?feed=rss2&#038;tag=mysql" rel="self" type="application/rss+xml" />
	<link>http://asmw.de</link>
	<description>...assembling words</description>
	<lastBuildDate>Mon, 16 Aug 2010 20:39:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Not a NaN&#8230;</title>
		<link>http://asmw.de/?p=130</link>
		<comments>http://asmw.de/?p=130#comments</comments>
		<pubDate>Tue, 10 Nov 2009 19:12:26 +0000</pubDate>
		<dc:creator>medha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[NaN]]></category>

		<guid isPermaLink="false">http://asmw.de/?p=130</guid>
		<description><![CDATA[<p>I tried to copy a mysql database with several gigabytes of data and suddenly the receiving end chokes on a &#8216;nan&#8217;.</p>
<p>Nani?</p>
<p>Well apparently earlier versions of mysql supported &#8216;nan&#8217; and &#8216;inf&#8217; as valid float values but newer versions don&#8217;t as they abide by the SQL standard which states:</p>
<p>&#8216;Thou shalt not NaN&#8217;</p>
<p>And thus it&#8217;s in the data [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to copy a mysql database with several gigabytes of data and suddenly the receiving end chokes on a &#8216;nan&#8217;.</p>
<p>Nani?</p>
<p>Well apparently earlier versions of mysql supported &#8216;nan&#8217; and &#8216;inf&#8217; as valid float values but newer versions don&#8217;t as they abide by the SQL standard which states:</p>
<p>&#8216;Thou shalt not NaN&#8217;</p>
<p>And thus it&#8217;s in the data but it won&#8217;t go into the new database.<br />
Suckage ensues&#8230;</p>
<p>So how do you find all those NaNs to make them something useful again?</p>
<p>Magic!</p>
<p><code>SELECT * FROM `table` WHERE `value` > 3e+40</code></p>
<p>If i understood it correctly 3e+40 is larger than maxFloat but NaN wins the comparison. The same can be used to replace all those values with something valid.</p>
<p>Yay!<br />
Go nuts.</p>
]]></content:encoded>
			<wfw:commentRss>http://asmw.de/?feed=rss2&amp;p=130</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
