| 1 |
lars |
1 |
--TEST--
|
|
|
2 |
DB_driver::transaction test
|
|
|
3 |
--INI--
|
|
|
4 |
error_reporting = 2047
|
|
|
5 |
--SKIPIF--
|
|
|
6 |
<?php
|
|
|
7 |
chdir(dirname(__FILE__)); require_once './skipif.inc';
|
|
|
8 |
if (!$db->features['transactions']) {
|
|
|
9 |
die('skip this driver does not support transactions');
|
|
|
10 |
}
|
|
|
11 |
?>
|
|
|
12 |
--FILE--
|
|
|
13 |
<?php
|
|
|
14 |
$needinnodb = true;
|
|
|
15 |
require_once './mktable.inc';
|
|
|
16 |
require_once '../transactions.inc';
|
|
|
17 |
?>
|
|
|
18 |
--EXPECT--
|
|
|
19 |
1) after autocommit: bing one. ops=ok
|
|
|
20 |
2) before commit: bing one two three. ops=ok
|
|
|
21 |
3) after commit: bing one two three. ops=ok
|
|
|
22 |
4) before rollback: bing one two three four five. ops=ok
|
|
|
23 |
5) after rollback: bing one two three. ops=ok
|
|
|
24 |
6) before autocommit+rollback: bing one two three six seven. ops=ok
|
|
|
25 |
7) after autocommit+rollback: bing one two three six seven. ops=ok
|
|
|
26 |
8) testing that select doesn't disturbe opcount: ok
|