Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only used the cached transformed query if the original one is not dirty
  • Loading branch information
lorenzo committed Jan 27, 2013
1 parent 689ec86 commit af41f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Query.php
Expand Up @@ -493,7 +493,7 @@ protected function _bindParams($statement) {
* @return void
**/
protected function _transformQuery() {
if (isset($this->_transformedQuery)) {
if (isset($this->_transformedQuery) && !$this->_dirty) {
return $this->_transformedQuery;
}
// TODO: Should Query actually get the driver or just let the connection decide where
Expand Down

0 comments on commit af41f4e

Please sign in to comment.