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?

Posted in  | no comments | no trackbacks

Trackbacks: 0

Use the following link to trackback from your own site: http://streamlinedframework.org/articles/trackback/140

Comments: 0

Leave a response | RSS feed for this post

Leave a response

Toggle website and email fields