From f72989de5b3b3cfb6e6e639b57c3a3bebb2de8f2 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 21 Apr 2011 15:50:19 -0500 Subject: raising not implemented exceptions for distinct on where it is not supported --- lib/arel/visitors/to_sql.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/arel/visitors') 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 -- cgit v1.2.3