aboutsummaryrefslogtreecommitdiffstats
path: root/spec/doubles
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-04-29 19:38:39 -0300
committerEmilio Tagua <miloops@gmail.com>2009-04-29 19:38:39 -0300
commitb4b73d9520a2ff27021b530ccd3dcd96973ce5fe (patch)
tree5a72648ea38f5ca0d739119d54617596d3e2b139 /spec/doubles
parent5e4bfb1ce4144785feaeffc6210740e3e4ce5770 (diff)
downloadrails-b4b73d9520a2ff27021b530ccd3dcd96973ce5fe.tar.gz
rails-b4b73d9520a2ff27021b530ccd3dcd96973ce5fe.tar.bz2
rails-b4b73d9520a2ff27021b530ccd3dcd96973ce5fe.zip
Added DISTINCT support. Modified when to quote or not columns and tables.
Diffstat (limited to 'spec/doubles')
-rw-r--r--spec/doubles/database.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/doubles/database.rb b/spec/doubles/database.rb
index 7670958d7a..f8a4b38e17 100644
--- a/spec/doubles/database.rb
+++ b/spec/doubles/database.rb
@@ -34,6 +34,10 @@ module Fake
def quote_table_name(table_name)
"`#{table_name}`"
end
+
+ def supports_count_distinct?
+ true
+ end
end
class Column