Bug #2508 Updated: #table handling issue
| From: | sander@php.net | Date: | Sun, 16 Jun 2002 18:15:34 +0000 |
| Subject: | Bug #2508 Updated: #table handling issue | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10756@lists.php.net to get a copy of this message | ||
ID: 2508
Updated by: sander@php.net
Reported By: nicholas.steel@greenwichnatwest.com
-Status: Open
+Status: Bogus
Bug Type: Sybase (dblib) related
Operating System: Solaris 2.6
PHP Version: 3.0.12
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[1999-10-13 12:48:31] nicholas.steel@greenwichnatwest.com
if you call a piece of T-SQL (sybase sql) that uses a temporary table -
although it only returns one result set - php3 seems to get lost and
returns an error of:
1 is not a Sybase result index ...
a sample piece of sql would be:
################# START SAMPLE ####################
create table #mytable (name varchar(30))
insert into #mytable
select name from sysobjects
select name from #mytable
################# END SAMPLE ####################
a sample piece of php3 would be:
################# START SAMPLE ####################
$dbh = sybase_connect ($server , $user, $password);
$row_handle = sybase_query ($sql , $dbh);
while ($A_row = sybase_fetch_row($row_handle))
{
print $A_row[0];
}
################# END SAMPLE ####################
although this is a trivial example - you see more sophisticated
versions of this quite a lot in Sybase code.
NB: Perl does handle this correctly as does isql so its not an inherent
failure in db-library.
NNB it does this in ct-library as well.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=2508&edit=1