diff options
Diffstat (limited to 'lib/arel/visitors/mysql.rb')
-rw-r--r-- | lib/arel/visitors/mysql.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/arel/visitors/mysql.rb b/lib/arel/visitors/mysql.rb index 594fd5504a..afffd37f9b 100644 --- a/lib/arel/visitors/mysql.rb +++ b/lib/arel/visitors/mysql.rb @@ -10,6 +10,11 @@ module Arel super end + def visit_Arel_Nodes_SelectCore o + o.froms ||= Arel.sql('DUAL') + super + end + def visit_Arel_Nodes_UpdateStatement o [ "UPDATE #{visit o.relation}", |