georg Sat Feb 15 11:21:35 2003 EDT Modified files: /php4/ext/mysqli/tests 014.phpt 015.phpt Log: added skipif section (innodb-support) Index: php4/ext/mysqli/tests/014.phpt diff -u php4/ext/mysqli/tests/014.phpt:1.1 php4/ext/mysqli/tests/014.phpt:1.2 --- php4/ext/mysqli/tests/014.phpt:1.1 Tue Feb 11 19:46:29 2003 +++ php4/ext/mysqli/tests/014.phpt Sat Feb 15 11:21:35 2003 @@ -1,10 +1,21 @@ --TEST-- mysqli autocommit/commit/rollback +--SKIPIF-- +<?php + include "connect.inc"; + $link = mysqli_connect("localhost", $user, $passwd); + $result = mysqli_query($link, "SHOW VARIABLES LIKE 'have_innodb'"); + $row = mysqli_fetch_row($result); + mysqli_free_result($result); + mysqli_close($link); + + if ($row[1] == "NO") { + printf ("skip innodb support not installed."); + } +?> --FILE-- <?php include "connect.inc"; - - /*** test mysqli_connect 127.0.0.1 ***/ $link = mysqli_connect("localhost", $user, $passwd); mysqli_select_db($link, "test"); @@ -17,7 +28,6 @@ mysqli_query($link, "INSERT INTO ac_01 VALUES (1, 'foobar')"); mysqli_autocommit($link, FALSE); - mysqli_query($link, "DELETE FROM ac_01"); mysqli_query($link, "INSERT INTO ac_01 VALUES (2, 'egon')"); Index: php4/ext/mysqli/tests/015.phpt diff -u php4/ext/mysqli/tests/015.phpt:1.1 php4/ext/mysqli/tests/015.phpt:1.2 --- php4/ext/mysqli/tests/015.phpt:1.1 Tue Feb 11 19:46:29 2003 +++ php4/ext/mysqli/tests/015.phpt Sat Feb 15 11:21:35 2003 @@ -1,5 +1,18 @@ --TEST-- mysqli autocommit/commit/rollback with myisam +--SKIPIF-- +<?php + include "connect.inc"; + $link = mysqli_connect("localhost", $user, $passwd); + $result = mysqli_query($link, "SHOW VARIABLES LIKE 'have_innodb'"); + $row = mysqli_fetch_row($result); + mysqli_free_result($result); + mysqli_close($link); + + if ($row[1] == "NO") { + printf ("skip innodb support not installed."); + } +?> --FILE-- <?php include "connect.inc";
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php