<?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>Wax Technical &#187; Software Development</title>
	<atom:link href="http://waxtechnical.com/category/software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://waxtechnical.com</link>
	<description>I hate writing software and so should you!</description>
	<lastBuildDate>Fri, 05 Aug 2011 10:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ActiveRecord SQLServer Adapter Patch Accepted</title>
		<link>http://waxtechnical.com/2009/06/25/activerecord-sqlserver-adapter-patch-accepted/</link>
		<comments>http://waxtechnical.com/2009/06/25/activerecord-sqlserver-adapter-patch-accepted/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 20:13:46 +0000</pubDate>
		<dc:creator>vpuzzella</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[SQLServer]]></category>

		<guid isPermaLink="false">http://waxtechnical.com/?p=25</guid>
		<description><![CDATA[If you&#8217;re like me and work on a Ruby on Rails application which is backed by SQLServer (don&#8217;t ask!), then you may be interested in this. If not, then go way you lucky bastard! As we all know, SQLServer is a huge PITA (no limit/offset? WTF?) and up until recently, the ActiveRecord SQLServer Adapter didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me and work on a Ruby on Rails application which is backed by SQLServer (don&#8217;t ask!), then you may be interested in this. If not, then go way you lucky bastard!</p>
<p>As we all know, SQLServer is a huge PITA (no limit/offset? WTF?) and up until recently, the ActiveRecord SQLServer Adapter didn&#8217;t even ship with Rails. Yeah, there are a lot of them them out there, but they all have their own problems. Anyway, thanks to all the great work done by <a href="http://github.com/metaskills">Ken Collins</a> and company, as of Rails 2.2, the <a href="http://github.com/rails-sqlserver/2000-2005-adapter">ActiveRecord SQLServer Adapter</a> is back!</p>
<p>I was so happy when I heard this that I instantly installed it over top of our Frankensteined version to see if it would resovle the countless issues we&#8217;ve had to deal with. Things were going smoothly and I was jubilant until I discovered that <a href="http://rails-sqlserver.lighthouseapp.com/projects/20277/tickets/36-quote_column_name-messes-up-quoted-column-names">this column quoting issue</a> was still hanging around and causing  errors like this:</p>
<p><em>DBI::DatabaseError: 42000 (102) [FreeTDS][SQL Server]Incorrect syntax near &#8216;.&#8217;.: SELECT * FROM (SELECT TOP 10 * FROM (SELECT TOP 10 [people].* FROM [people] ORDER BY people.[id] ASC) AS tmp1 ORDER BY people.[[id]] DESC) AS tmp2 ORDER BY people.[[id]] ASC</em></p>
<p>I promptly submitted <a href="http://github.com/rails-sqlserver/2000-2005-adapter/commit/32ff3920b2755f10ff15267e880cdf0a91973146">my glorious 1 LOC patch</a> (actually, it&#8217;s more than one line if you include the test case!) and Ken was kind enough to include it in the latest release!</p>
<p>w00t!</p>
]]></content:encoded>
			<wfw:commentRss>http://waxtechnical.com/2009/06/25/activerecord-sqlserver-adapter-patch-accepted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

