<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>johnreilly - Latest Comments in subqueries: sqlite3 vs. mysql</title><link>http://johnreilly.disqus.com/</link><description></description><atom:link href="https://johnreilly.disqus.com/subqueries_sqlite3_vs_mysql/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 05 Feb 2009 10:11:09 -0000</lastBuildDate><item><title>Re: subqueries: sqlite3 vs. mysql</title><link>http://johnreilly.tumblr.com/post/63757249#comment-5866750</link><description>&lt;p&gt;Interesting... So is it the case that sqlite3 doesn't support subqueries, and instead of throwing an error is just returning an empty set instead?  Or does it simply have a different syntax for subqueries than mysql does?&lt;/p&gt;&lt;p&gt;I see that using a conditions hash can lead to syntax that isn't portable, but how can you do a subquery in rails agnostically? Does Active Record have some magic up its sleeves that I don't know?&lt;/p&gt;&lt;p&gt;Thanks for the response.  (BTW, my "solution" was to just use mysql for the dev environment instead of sqlite3 because mysql gave me the result I wanted, and I'll be using mysql in production anyway.) ;-)&lt;/p&gt;&lt;p&gt;-John&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">johnreilly</dc:creator><pubDate>Thu, 05 Feb 2009 10:11:09 -0000</pubDate></item><item><title>Re: subqueries: sqlite3 vs. mysql</title><link>http://johnreilly.tumblr.com/post/63757249#comment-5862618</link><description>&lt;p&gt;aka sqlite3 is being nice in letting you use NOT IN (NULL)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">a</dc:creator><pubDate>Thu, 05 Feb 2009 06:46:51 -0000</pubDate></item><item><title>Re: subqueries: sqlite3 vs. mysql</title><link>http://johnreilly.tumblr.com/post/63757249#comment-5862590</link><description>&lt;p&gt;You've probably figured it out but it's because you're using a hash of conditions and your syntax is not database agnostic&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">a</dc:creator><pubDate>Thu, 05 Feb 2009 06:44:22 -0000</pubDate></item></channel></rss>