<?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: The Joy of Null	</title>
	<atom:link href="https://www.selikoff.net/2009/04/07/the-joy-of-null/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/</link>
	<description>Java/J2EE Software Development and Technology Discussion Blog</description>
	<lastBuildDate>Wed, 08 Apr 2009 21:28:25 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Frederick Ross		</title>
		<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1130</link>

		<dc:creator><![CDATA[Frederick Ross]]></dc:creator>
		<pubDate>Wed, 08 Apr 2009 21:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=852#comment-1130</guid>

					<description><![CDATA[Codd actually proposed separating null into a couple different types based on exactly this distinction.  You&#039;ll find it in some of his later writing on databases.

Of course, the major databases today don&#039;t even implement the relational algebra in any meaningful way, so...]]></description>
			<content:encoded><![CDATA[<p>Codd actually proposed separating null into a couple different types based on exactly this distinction.  You&#8217;ll find it in some of his later writing on databases.</p>
<p>Of course, the major databases today don&#8217;t even implement the relational algebra in any meaningful way, so&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: scott		</title>
		<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1127</link>

		<dc:creator><![CDATA[scott]]></dc:creator>
		<pubDate>Wed, 08 Apr 2009 19:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=852#comment-1127</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1125&quot;&gt;Kevin Wheat&lt;/a&gt;.

This is definitely non-standard for most database systems.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1125">Kevin Wheat</a>.</p>
<p>This is definitely non-standard for most database systems.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kevin Wheat		</title>
		<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1125</link>

		<dc:creator><![CDATA[Kevin Wheat]]></dc:creator>
		<pubDate>Wed, 08 Apr 2009 19:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=852#comment-1125</guid>

					<description><![CDATA[Most of our java based web apps are dependent on iSeries database which is maintained in a case tool called synon.  The resulting dds(data definition specs) can only support 3 datatypes
char,signed numeric and unsigned numeric.  So a null in char(9) is nine blanks, a null in numeric is 0 etc.]]></description>
			<content:encoded><![CDATA[<p>Most of our java based web apps are dependent on iSeries database which is maintained in a case tool called synon.  The resulting dds(data definition specs) can only support 3 datatypes<br />
char,signed numeric and unsigned numeric.  So a null in char(9) is nine blanks, a null in numeric is 0 etc.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: KL		</title>
		<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1122</link>

		<dc:creator><![CDATA[KL]]></dc:creator>
		<pubDate>Wed, 08 Apr 2009 16:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=852#comment-1122</guid>

					<description><![CDATA[I believe for Oracle you don&#039;t really get a choice, since empty strings (&quot;&quot;) are coerced to null.

We had to create a &quot;null-equivalent value&quot; because our webapp would store empty strings for empty text fields, and then repopulate them with &quot;(null)&quot;.]]></description>
			<content:encoded><![CDATA[<p>I believe for Oracle you don&#8217;t really get a choice, since empty strings (&#8220;&#8221;) are coerced to null.</p>
<p>We had to create a &#8220;null-equivalent value&#8221; because our webapp would store empty strings for empty text fields, and then repopulate them with &#8220;(null)&#8221;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: scott		</title>
		<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1093</link>

		<dc:creator><![CDATA[scott]]></dc:creator>
		<pubDate>Tue, 07 Apr 2009 23:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=852#comment-1093</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1092&quot;&gt;vlad&lt;/a&gt;.

A user entering a blank value isn&#039;t the same thing as the system inserting blank values.  For example, if a user enters 2 spaces for a name, do you cut them off?  This is far more dependent on your specific application model than anything that could be generalized.  This article is more about developers writing code that actively inserting blank strings when it sees null or missing values.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1092">vlad</a>.</p>
<p>A user entering a blank value isn&#8217;t the same thing as the system inserting blank values.  For example, if a user enters 2 spaces for a name, do you cut them off?  This is far more dependent on your specific application model than anything that could be generalized.  This article is more about developers writing code that actively inserting blank strings when it sees null or missing values.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vlad		</title>
		<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1092</link>

		<dc:creator><![CDATA[vlad]]></dc:creator>
		<pubDate>Tue, 07 Apr 2009 23:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=852#comment-1092</guid>

					<description><![CDATA[Just one question: how do you detect that the user hasn&#039;t filled in his middle name (null) or he has a blank middle name (&#039;&#039;) ?
Generally speaking, when you have no flip switch to tell if a value is filled in or not, you never get nulls in the nullable columns, right?]]></description>
			<content:encoded><![CDATA[<p>Just one question: how do you detect that the user hasn&#8217;t filled in his middle name (null) or he has a blank middle name (&#8221;) ?<br />
Generally speaking, when you have no flip switch to tell if a value is filled in or not, you never get nulls in the nullable columns, right?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: scott		</title>
		<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1094</link>

		<dc:creator><![CDATA[scott]]></dc:creator>
		<pubDate>Tue, 07 Apr 2009 22:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=852#comment-1094</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1090&quot;&gt;CHB&lt;/a&gt;.

Perhaps in MySQL it is problematic, MySQL&#039;s performance is among the weaker of the larger DBMS&#039;s.  But inserting null-equivalent versus null values is more about the data model than performance.  I&#039;ve never heard anyard anyone claim they inserted an empty string on purpose because of performance reasons.  Also, keep in mind if the field is VARCHAR, it could grow in size just as easily as null fields, granted that&#039;s more of a database-specific implementation issue to me.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1090">CHB</a>.</p>
<p>Perhaps in MySQL it is problematic, MySQL&#8217;s performance is among the weaker of the larger DBMS&#8217;s.  But inserting null-equivalent versus null values is more about the data model than performance.  I&#8217;ve never heard anyard anyone claim they inserted an empty string on purpose because of performance reasons.  Also, keep in mind if the field is VARCHAR, it could grow in size just as easily as null fields, granted that&#8217;s more of a database-specific implementation issue to me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: CHB		</title>
		<link>https://www.selikoff.net/2009/04/07/the-joy-of-null/comment-page-1/#comment-1090</link>

		<dc:creator><![CDATA[CHB]]></dc:creator>
		<pubDate>Tue, 07 Apr 2009 22:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=852#comment-1090</guid>

					<description><![CDATA[The problem with allowing null fields in a tables (at least in MySQL) is that it leads to non-static-length tables; which can offer a large performance hit on i/o-intensive operations. Using null-like characters instead of allowing null fields and taking a performance hit is perfectly fine when A) your programmer(s) is expecting this, and/or B) when you have i/o intensive DB operations going on.

p.s. F&#039; your comment box. I had to rewrite this because I didn&#039;t want to put an email/url in. The irony of not allowing nulls in this comment box section on this article is bittersweet.]]></description>
			<content:encoded><![CDATA[<p>The problem with allowing null fields in a tables (at least in MySQL) is that it leads to non-static-length tables; which can offer a large performance hit on i/o-intensive operations. Using null-like characters instead of allowing null fields and taking a performance hit is perfectly fine when A) your programmer(s) is expecting this, and/or B) when you have i/o intensive DB operations going on.</p>
<p>p.s. F&#8217; your comment box. I had to rewrite this because I didn&#8217;t want to put an email/url in. The irony of not allowing nulls in this comment box section on this article is bittersweet.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
