<?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: When installing MySQL always set the sql-mode</title>
	<atom:link href="http://gabrito.com/post/when-installing-mysql-always-set-the-sql-mode/feed" rel="self" type="application/rss+xml" />
	<link>http://gabrito.com/post/when-installing-mysql-always-set-the-sql-mode</link>
	<description>Anecdotes on Java, Ruby, Sysadmin, SEO, Design, and Management</description>
	<pubDate>Thu, 04 Dec 2008 18:31:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Configuring MySQL sql-mode in Ruby on Rails</title>
		<link>http://gabrito.com/post/when-installing-mysql-always-set-the-sql-mode#comment-1211</link>
		<dc:creator>Configuring MySQL sql-mode in Ruby on Rails</dc:creator>
		<pubDate>Thu, 08 Jun 2006 03:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/when-installing-mysql-always-set-the-sql-mode#comment-1211</guid>
		<description>[...] In my previous post I wrote about setting MySQL to a stricter sql-mode to make it behave like most other databases, however, I recently ran into a case where I couldn&#8217;t set the global sql-mode without breaking some legacy applications. I imagine this is also often the case when you host on a shared server where a global configuration change would be out of the question.  I realized I needed to set the sql-mode in my Ruby on Rails project so that no matter where it ran it would get consistent behavior (such as when inserting nulls into non-nullable fields). I did it by reopening the MysqlAdapter class and setting the sql-mode upon connect. To do this add the following to the end of config/environment.rb: [...]</description>
		<content:encoded><![CDATA[<p>[...] In my previous post I wrote about setting MySQL to a stricter sql-mode to make it behave like most other databases, however, I recently ran into a case where I couldn&#8217;t set the global sql-mode without breaking some legacy applications. I imagine this is also often the case when you host on a shared server where a global configuration change would be out of the question.  I realized I needed to set the sql-mode in my Ruby on Rails project so that no matter where it ran it would get consistent behavior (such as when inserting nulls into non-nullable fields). I did it by reopening the MysqlAdapter class and setting the sql-mode upon connect. To do this add the following to the end of config/environment.rb: [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
