<?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>jonezy.org &#187; Code</title>
	<atom:link href="http://www.jonezy.org/blog/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonezy.org/blog</link>
	<description>me and you and everyone we know</description>
	<lastBuildDate>Wed, 27 Jan 2010 03:58:06 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>subsonic won&#8217;t update my bit field?</title>
		<link></link>
		<comments>http://www.jonezy.org/blog/2009/10/28/subsonic-wont-update-my-bit-field/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 18:10:54 +0000</pubDate>
		<dc:creator>jonezy</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SubSonic]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.jonezy.org/blog/?p=354</guid>
		<description><![CDATA[I recently ran into a really strange problem while using SubSonic.  I had a bit column in my database that was set to not allow nulls and had a default value of false.  Pretty standard stuff in the world of database design I guess.
When it came time to start saving my entities to the database, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently ran into a really strange problem while using <a href="http://www.subsonicproject.com" target="_blank">SubSonic</a>.  I had a bit column in my database that was set to not allow nulls and had a default value of false.  Pretty standard stuff in the world of database design I guess.</p>
<p>When it came time to start saving my entities to the database, everything was working ok, except&#8230;. except after I had created a record in the database I could never change the IsActive column, like wtf?  I could never toggle between true and false on an existing record, but an insert would save the record perfectly every time.</p>
<p>To make a long incredibly frustrating story short, it turns out that if you have a bit field, that is set to allow nulls and has a default value of false it will never update (this is only using <a href="http://www.subsonicproject.com" target="_blank">SubSonic</a>).</p>
<p>So to ensure your bit fields work correctly in <a href="http://www.subsonicproject.com" target="_blank">SubSonic</a>, make sure those bit columns allow null and don&#8217;t have any default values!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonezy.org/blog/2009/10/28/subsonic-wont-update-my-bit-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
