diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-21 15:50:19 -0500 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-21 15:50:19 -0500 |
commit | f72989de5b3b3cfb6e6e639b57c3a3bebb2de8f2 (patch) | |
tree | 5f503522ff51b1ff1733306db0546c6c870b59b5 /lib | |
parent | 0b9af9762a5f3431f83a9bba6919fef9346e310a (diff) | |
download | rails-f72989de5b3b3cfb6e6e639b57c3a3bebb2de8f2.tar.gz rails-f72989de5b3b3cfb6e6e639b57c3a3bebb2de8f2.tar.bz2 rails-f72989de5b3b3cfb6e6e639b57c3a3bebb2de8f2.zip |
raising not implemented exceptions for distinct on where it is not supported
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 5319aeb418..73319364d5 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -142,6 +142,10 @@ key on UpdateManager using UpdateManager#key= 'DISTINCT' end + def visit_Arel_Nodes_DistinctOn o + raise NotImplementedError, 'DISTINCT ON not implemented for this db' + end + def visit_Arel_Nodes_With o "WITH #{o.children.map { |x| visit x }.join(', ')}" end |