Question on mysql_fetch_array.phpt
| From: | ed slattery | Date: | Mon, 07 Apr 2008 13:05:08 +0000 |
| Subject: | Question on mysql_fetch_array.phpt | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-64156@lists.php.net to get a copy of this message | ||
This test contains the following:
if (!mysql_query($sql = sprintf("CREATE TABLE test(id INT NOT NULL, label
%s, PRIMARY KEY(id)) ENGINE = %s", $sql_type, $engine), $link)) {
print $sql;
// don't bail, engine might not support the datatype
return false;
So, if the statement fails, then it is printed - which causes the test to
fail, but the comment indicates that this might not be a cause for failure.
Should the test succeed even if a particular statement is not supported - in
which case we should not print $sql - or is it intended to provoke a test
failure in this case?