Closed cchko closed 8 years ago
MySQL doesn't offer concat operators (||, +) but instead a concat() function.
||
+
concat()
Is it possible to call this with squeel? concat and __send__(:concat) don't appear to work.
concat
__send__(:concat)
Concat operators can be turned on in MySQL, but I'm interested in a solution that doesn't require that.
Just realized I can do this with a string.
select { "concat(users.last_name, ', ', users.first_name) as full_name" }
MySQL doesn't offer concat operators (
||
,+
) but instead aconcat()
function.Is it possible to call this with squeel?
concat
and__send__(:concat)
don't appear to work.Concat operators can be turned on in MySQL, but I'm interested in a solution that doesn't require that.