Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Quote integers in postgresql #172
You're right. This is actually in to_sql right already: https://github.com/rails/arel/blob/master/lib/arel/visitors/to_sql.rb#L556-L557 but it's not quoted.
I've putted fix into PostgreSQL as I wasn't sure (and I'm still) not how this will affect other DBMS.
I wasn't aware of the #162 though. There's proper solution to my problem. I think this PR can be closed and it would be awesome to merge it as it's needed to solve Rails issue fully. Sorry for the mess ;)
Yes, but in #162 there's a change from literal to quoted for there two types: https://github.com/rails/arel/pull/162/files#L0R588