cvs: php4 /ext/mysqli/tests 014.phpt 015.phpt

From: Date: Sat, 15 Feb 2003 16:21:35 +0000
Subject: cvs: php4 /ext/mysqli/tests 014.phpt 015.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18849@lists.php.net to get a copy of this message
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";

« previous php.cvs (#18849) next »