ID: 21076
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: ODBC related
Operating System: Win2000, IIS-CGI
-PHP Version: 4.2.3
+PHP Version: 4.3.0RC3
New Comment:
Updating version.
Previous Comments:
------------------------------------------------------------------------
[2002-12-19 05:57:03] [EMAIL PROTECTED]
yes it still happens with 4.3.0 rc3.
Regards, John
------------------------------------------------------------------------
[2002-12-18 14:00:48] [EMAIL PROTECTED]
Can you please try one of the RCs?
------------------------------------------------------------------------
[2002-12-18 07:54:50] [EMAIL PROTECTED]
The following code:
<?php
error_reporting(E_ALL);
$conn = odbc_connect("netsdk", "yyyy", "xxxx") or die("FAIL
CONNECTION");
print "Connected <br>";
print "ODBC_Tables<br>";
$trs = odbc_tables($conn);
odbc_free_result($trs);
print "ODBC_Columns<br>";
$colrs = odbc_columns($conn);
odbc_free_result($colrs);
print "Done<br>";
?>
Will generate the output:
Connected
ODBC_Tables
ODBC_Columns
Warning: SQL error: , SQL state 00000 in SQLColumns in
d:\inetpub\wwwroot\php\hs~a.php on line 10
Warning: odbc_free_result(): supplied argument is not a valid ODBC
result resource in d:\inetpub\wwwroot\php\hs~a.php on line 11
Done
However, the following code with odbc_tables commented out:
<?php
error_reporting(E_ALL);
$conn = odbc_connect("netsdk", "adodb", "natsoft") or die("FAIL
CONNECTION");
print "Connected <br>";
/*print "ODBC_Tables<br>";
$trs = odbc_tables($conn);
odbc_free_result($trs);*/
print "ODBC_Columns<br>";
$colrs = odbc_columns($conn);
odbc_free_result($colrs);
print "Done<br>";
?>
Works fine with the output:
Connected
ODBC_Columns
Done
Hope this was clear.
Regards, John Lim
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21076&edit=1