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 96286af commit ac33e69Copy full SHA for ac33e69
src/Databases/MySQL.php
@@ -173,20 +173,23 @@ public function delete() {
173
* @return $this
174
*/
175
public function transactionStart() {
176
- $this->exec('BEGIN;');
+ $this->pdo->beginTransaction();
177
+ return $this;
178
}
179
180
/**
181
182
183
public function transactionCommit() {
- $this->exec('COMMIT;');
184
+ $this->pdo->commit();
185
186
187
188
189
190
191
public function transactionRollback() {
- $this->exec('ROLLBACK;');
192
+ $this->pdo->rollBack();
193
194
195
0 commit comments