Skip to content

Commit b5e1323

Browse files
committed
Delete the part where commit() is executed in autocommit mode
1 parent 42b83af commit b5e1323

File tree

6 files changed

+0
-22
lines changed

6 files changed

+0
-22
lines changed

ext/pdo_firebird/tests/bug_47415.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
1515
$dbh->exec('CREATE TABLE test47415 (idx int NOT NULL PRIMARY KEY, txt VARCHAR(20))');
1616
$dbh->exec('INSERT INTO test47415 VALUES(0, \'String0\')');
1717

18-
$dbh->commit();
19-
2018
$query = "SELECT idx, txt FROM test47415 ORDER by idx";
2119
$idx = $txt = 0;
2220
$stmt = $dbh->prepare($query);
@@ -31,8 +29,6 @@ var_dump($stmt->rowCount());
3129
$stmt = $dbh->prepare('DELETE FROM test47415');
3230
$stmt->execute();
3331

34-
$dbh->commit();
35-
3632
unset($stmt);
3733
unset($dbh);
3834
?>

ext/pdo_firebird/tests/bug_48877.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ $dbh->exec('CREATE TABLE test48877 (A integer)');
1717
$dbh->exec("INSERT INTO test48877 VALUES ('1')");
1818
$dbh->exec("INSERT INTO test48877 VALUES ('2')");
1919
$dbh->exec("INSERT INTO test48877 VALUES ('3')");
20-
$dbh->commit();
2120

2221
$query = "SELECT * FROM test48877 WHERE A = :paramno";
2322

@@ -32,7 +31,6 @@ var_dump($stmt->rowCount());
3231
$stmt = $dbh->prepare('DELETE FROM test48877');
3332
$stmt->execute();
3433

35-
$dbh->commit();
3634
unset($stmt);
3735
unset($dbh);
3836

ext/pdo_firebird/tests/bug_53280.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ require("testdb.inc");
1313

1414
$dbh->exec('CREATE TABLE test53280(A VARCHAR(30), B VARCHAR(30), C VARCHAR(30))');
1515
$dbh->exec("INSERT INTO test53280 VALUES ('A', 'B', 'C')");
16-
$dbh->commit();
1716

1817
$stmt1 = "SELECT B FROM test53280 WHERE A = ? AND B = ?";
1918
$stmt2 = "SELECT B, C FROM test53280 WHERE A = ? AND B = ?";
@@ -28,7 +27,6 @@ $stmth1->execute(array('A', 'B'));
2827
$rows = $stmth1->fetchAll(); // <------- segfault
2928
var_dump($rows);
3029

31-
$dbh->commit();
3230
unset($stmth1);
3331
unset($stmth2);
3432
unset($stmt);

ext/pdo_firebird/tests/bug_62024.phpt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ require("testdb.inc");
1414
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
1515
$dbh->exec("CREATE TABLE test62024 (ID INTEGER NOT NULL, TEXT VARCHAR(10))");
1616

17-
$dbh->commit();
18-
1917
//start actual test
2018

2119
$sql = "insert into test62024 (id, text) values (?, ?)";
@@ -30,15 +28,11 @@ var_dump($res);
3028
$res = $sttmt->execute($args_err);
3129
var_dump($res);
3230

33-
$dbh->commit();
34-
3531

3632
//teardown test data
3733
$sttmt = $dbh->prepare('DELETE FROM test62024');
3834
$sttmt->execute();
3935

40-
$dbh->commit();
41-
4236
unset($sttmt);
4337
unset($dbh);
4438

ext/pdo_firebird/tests/bug_64037.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ $dbh->exec("INSERT INTO test64037 (ID, TEXT, COST) VALUES (1, 'test', -1.0)");
1717
$dbh->exec("INSERT INTO test64037 (ID, TEXT, COST) VALUES (2, 'test', -0.99)");
1818
$dbh->exec("INSERT INTO test64037 (ID, TEXT, COST) VALUES (3, 'test', -1.01)");
1919

20-
$dbh->commit();
21-
2220
$query = "SELECT * from test64037 order by ID";
2321
$stmt = $dbh->prepare($query);
2422
$stmt->execute();
@@ -31,8 +29,6 @@ var_dump($rows[2]['COST']);
3129
$stmt = $dbh->prepare('DELETE FROM test64037');
3230
$stmt->execute();
3331

34-
$dbh->commit();
35-
3632
unset($stmt);
3733
unset($dbh);
3834

ext/pdo_firebird/tests/rowCount.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ $dbh->exec('CREATE TABLE test_rowcount (A VARCHAR(10))');
1515
$dbh->exec("INSERT INTO test_rowcount VALUES ('A')");
1616
$dbh->exec("INSERT INTO test_rowcount VALUES ('A')");
1717
$dbh->exec("INSERT INTO test_rowcount VALUES ('B')");
18-
$dbh->commit();
1918

2019
$query = "SELECT * FROM test_rowcount WHERE A = ?";
2120

@@ -29,14 +28,11 @@ var_dump($stmt->rowCount());
2928
$stmt = $dbh->prepare('UPDATE test_rowcount SET A="A" WHERE A != ?');
3029
$stmt->execute(array('A'));
3130
var_dump($stmt->rowCount());
32-
$dbh->commit();
3331

3432
$stmt = $dbh->prepare('DELETE FROM test_rowcount');
3533
$stmt->execute();
3634
var_dump($stmt->rowCount());
3735

38-
$dbh->commit();
39-
4036
unset($stmt);
4137
unset($dbh);
4238

0 commit comments

Comments
 (0)