File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
mysqli autocommit/commit/rollback
3
+ --SKIPIF--
4
+ <?php
5
+ include "connect.inc " ;
6
+ $ link = mysqli_connect ("localhost " , $ user , $ passwd );
7
+ $ result = mysqli_query ($ link , "SHOW VARIABLES LIKE 'have_innodb' " );
8
+ $ row = mysqli_fetch_row ($ result );
9
+ mysqli_free_result ($ result );
10
+ mysqli_close ($ link );
11
+
12
+ if ($ row [1 ] == "NO " ) {
13
+ printf ("skip innodb support not installed. " );
14
+ }
15
+ ?>
3
16
--FILE--
4
17
<?php
5
18
include "connect.inc " ;
6
-
7
- /*** test mysqli_connect 127.0.0.1 ***/
8
19
$ link = mysqli_connect ("localhost " , $ user , $ passwd );
9
20
10
21
mysqli_select_db ($ link , "test " );
@@ -17,7 +28,6 @@ mysqli autocommit/commit/rollback
17
28
18
29
mysqli_query ($ link , "INSERT INTO ac_01 VALUES (1, 'foobar') " );
19
30
mysqli_autocommit ($ link , FALSE );
20
-
21
31
mysqli_query ($ link , "DELETE FROM ac_01 " );
22
32
mysqli_query ($ link , "INSERT INTO ac_01 VALUES (2, 'egon') " );
23
33
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
mysqli autocommit/commit/rollback with myisam
3
+ --SKIPIF--
4
+ <?php
5
+ include "connect.inc " ;
6
+ $ link = mysqli_connect ("localhost " , $ user , $ passwd );
7
+ $ result = mysqli_query ($ link , "SHOW VARIABLES LIKE 'have_innodb' " );
8
+ $ row = mysqli_fetch_row ($ result );
9
+ mysqli_free_result ($ result );
10
+ mysqli_close ($ link );
11
+
12
+ if ($ row [1 ] == "NO " ) {
13
+ printf ("skip innodb support not installed. " );
14
+ }
15
+ ?>
3
16
--FILE--
4
17
<?php
5
18
include "connect.inc " ;
You can’t perform that action at this time.
0 commit comments