Closed bmidget closed 12 years ago
Seems like it would be nice to have access to escaped variables anywhere in the query builder, not just the "where" statement.
My suggestion is to allow it as a third parameter in the query():
query()
$query_object->query($resource, $sql, array $variables);
It would replace all :variables anywhere in the query with escaped versions of the variables array passed as the third parameter.
:variables
This is done with the $query->bind(array $binds); method
Seems like it would be nice to have access to escaped variables anywhere in the query builder, not just the "where" statement.
My suggestion is to allow it as a third parameter in the
query()
:It would replace all
:variables
anywhere in the query with escaped versions of the variables array passed as the third parameter.