PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/odbc/tests/odbc_columnprivileges_001.phpt ('odbc_columnprivileges(): Basic test')

Script

1: <?php
2:
3:
include 'config.inc';
4:
5:
$conn odbc_connect($dsn$user$pass);
6:
7:
var_dump($result odbc_columnprivileges($conn''''''''));
8:
var_dump(odbc_fetch_row($result));
9:
10:
var_dump($result odbc_columnprivileges($connNULLNULLNULLNULL));
11:
var_dump(odbc_fetch_row($result));
12:
13:
var_dump($result odbc_columnprivileges($conn'FOO''FOO''FOO''FOO'));
14:
var_dump(odbc_fetch_row($result));
15:
16:
?>
17:

Expected

resource(%d) of type (odbc result)
bool(false)
resource(%d) of type (odbc result)
bool(false)
resource(%d) of type (odbc result)
bool(false)

Output

Warning: odbc_columnprivileges(): SQL error: Failed to fetch error message, SQL state HY000 in SQLColumnPrivileges in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_columnprivileges_001.php on line 7
bool(false)

Fatal error: Uncaught TypeError: odbc_fetch_row() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_columnprivileges_001.php:8
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_columnprivileges_001.php(8): odbc_fetch_row(false)
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_columnprivileges_001.php on line 8

Diff

001+ Warning: odbc_columnprivileges(): SQL error: Failed to fetch error message, SQL state HY000 in SQLColumnPrivileges in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_columnprivileges_001.php on line 7
001- resource(%d) of type (odbc result)
003+ 
004+ Fatal error: Uncaught TypeError: odbc_fetch_row() expects parameter 1 to be resource, bool given in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_columnprivileges_001.php:8
005+ Stack trace:
006+ #0 /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_columnprivileges_001.php(8): odbc_fetch_row(false)
003- resource(%d) of type (odbc result)
004- bool(false)
005- resource(%d) of type (odbc result)
006- bool(false)
007+ #1 {main}
008+   thrown in /var/php_gcov/PHP_HEAD/ext/odbc/tests/odbc_columnprivileges_001.php on line 8

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (41 days ago)

Copyright © 2005-2019 The PHP Group
All rights reserved.