Skip to content

Commit

Permalink
PDO/Mysql Adapter: Fixed issue with empty conditions still producing …
Browse files Browse the repository at this point in the history
…a WHERE clause
  • Loading branch information
vlucas committed Sep 1, 2010
1 parent a1dd95f commit aeb461e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Adapter/PDO/Abstract.php
Expand Up @@ -563,6 +563,11 @@ public function statementConditions(array $conditions = array(), $ci = 0)
if($loopOnce) { break; }
}

// Ensure we actually had conditions
if(0 == $ci) {
$sqlStatement = '';
}

return $sqlStatement;
}

Expand Down

0 comments on commit aeb461e

Please sign in to comment.