Using %% when calling Connection.quote?
Posted by Stu Fri, 20 Jul 2007 02:11:16 GMT
I have committed a fix for Trac 43 as svn 565. It seems that some code paths through Rails Connection.quote use sprintf internally, while others do not. So we now pass %% which either acts as an escape, or doesn’t.
Is passing the unnecessary % on to the database is innocuous? It feels dirty. Is this a bug in ActiveRecord?



