php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2508 #table handling issue
Submitted: 1999-10-13 12:48 UTC Modified: 2002-06-16 14:15 UTC
From: nicholas dot steel at greenwichnatwest dot com Assigned:
Status: Not a bug Package: Sybase (dblib) related
PHP Version: 3.0.12 OS: Solaris 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nicholas dot steel at greenwichnatwest dot com
New email:
PHP Version: OS:

 

 [1999-10-13 12:48 UTC] nicholas dot steel at greenwichnatwest dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 14:15 UTC] sander@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC