Fix query interpolation #144

wants to merge 2 commits into


None yet

1 participant

ruiwen commented Jan 12, 2013

Thinking that interpolation might be more neatly done via str.replace() instead of string splitting along '?' characters. This patch allows for multiple interpolations as well, eg.

this.where(" === ? || user.age > ?", "john", 3, function(data) { 
    /* do stuff */ 

This patch also ensures that the callback is called at the end of the query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment