Skip to content

Commit

Permalink
Fixed mysql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 1, 2013
1 parent ffb744e commit 5910f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cake/Database/Statement/StatementDecorator.php
Expand Up @@ -273,7 +273,7 @@ public function bind($params, $types) {
*/
public function lastInsertId($table = null, $column = null) {
$row = null;
if ($column) {
if ($column && $this->columnCount()) {
$row = $this->fetch('assoc');
}
if ($column && $row) {
Expand Down

0 comments on commit 5910f5b

Please sign in to comment.