Faveod / arel-extensions

Extending Arel
MIT License
143 stars 24 forks source link

Group Concat bug #118

Open stackmystack opened 3 days ago

stackmystack commented 3 days ago

While checking the deprecation logs for == and !=, I stumbled upon a deprecation warning in the to_sql visitor: https://github.com/Faveod/arel-extensions/blob/master/lib/arel_extensions/visitors/to_sql.rb#L115 (but it's also present in other visitors).

It seems that this is wrong, because o.separator is anode, and naturally it's always != 'NULL'. Do we want to restrain the check for the cases where o.separator.is_a? String only? Or simply call to_s ... ?