We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd1c1d9 commit 8e93cb6Copy full SHA for 8e93cb6
src/FakePdo.php
@@ -129,7 +129,7 @@ public function rollback()
129
130
/**
131
* @param string $statement
132
- * @return bool
+ * @return int|false
133
*/
134
public function exec($statement)
135
{
@@ -139,7 +139,10 @@ public function exec($statement)
139
}
140
141
$sth = $this->prepare($statement);
142
- return $sth->execute();
+ if ($sth->execute()){
143
+ return $sth->rowCount();
144
+ }
145
+ return false;
146
147
148
0 commit comments