Open Looooong opened 2 years ago
The following SQL:
SELECT CAST (posts.created_at as date) FROM posts
should be translated to:
Post.select( Arel::Nodes::NamedFunction.new('CAST', [Post.arel_table[:created_at].as('date')]) )
Hey @Looooong, thanks for filing this. Any interest in submitting a PR?
The following SQL:
should be translated to: