PHP  
 PHP_5_5
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_exec_002.phpt ('odbc_exec(): Getting data from query')

Script

1: <?php
2:
3:
include 'config.inc';
4:
5:
$conn odbc_connect($dsn$user$pass);
6:
7:
odbc_exec($conn'CREATE DATABASE odbcTEST');
8:
9:
odbc_exec($conn'CREATE TABLE FOO (TEST INT)');
10:
11:
odbc_exec($conn'INSERT INTO FOO VALUES (1)');
12:
odbc_exec($conn'INSERT INTO FOO VALUES (2)');
13:
14:
$res odbc_exec($conn'SELECT * FROM FOO');
15:
16:
var_dump(odbc_fetch_row($res));
17:
var_dump(odbc_result($res'test'));
18:
var_dump(odbc_fetch_array($res));
19:
20:
odbc_exec($conn'DROP TABLE FOO');
21:
22:
odbc_exec($conn'DROP DATABASE odbcTEST');
23:
24:
?>
25:

Expected

bool(true)
string(1) "1"
array(1) {
  ["TEST"]=>
  string(1) "2"
}

Output

Warning: odbc_exec(): SQL error: [unixODBC][MySQL][ODBC 5.1 Driver][mysqld-5.1.73]Access denied for user 'odbcUser'@'localhost' to database 'odbcTEST', SQL state S1000 in SQLExecDirect in /var/php_gcov/PHP_5_5/ext/odbc/tests/odbc_exec_002.php on line 7
bool(true)
string(1) "1"
array(1) {
  ["TEST"]=>
  string(1) "2"
}

Warning: odbc_exec(): SQL error: [unixODBC][MySQL][ODBC 5.1 Driver][mysqld-5.1.73]Access denied for user 'odbcUser'@'localhost' to database 'odbcTEST', SQL state S1000 in SQLExecDirect in /var/php_gcov/PHP_5_5/ext/odbc/tests/odbc_exec_002.php on line 22

Diff

001+ Warning: odbc_exec(): SQL error: [unixODBC][MySQL][ODBC 5.1 Driver][mysqld-5.1.73]Access denied for user 'odbcUser'@'localhost' to database 'odbcTEST', SQL state S1000 in SQLExecDirect in /var/php_gcov/PHP_5_5/ext/odbc/tests/odbc_exec_002.php on line 7
008+ 
009+ Warning: odbc_exec(): SQL error: [unixODBC][MySQL][ODBC 5.1 Driver][mysqld-5.1.73]Access denied for user 'odbcUser'@'localhost' to database 'odbcTEST', SQL state S1000 in SQLExecDirect in /var/php_gcov/PHP_5_5/ext/odbc/tests/odbc_exec_002.php on line 22

 

Generated at Sat, 18 Oct 2014 06:38:44 +0000 (4 days ago)

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