php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13152 odbc_fetch_row uses update cursor on ODBC cursor library
Submitted: 2001-09-05 11:03 UTC Modified: 2002-04-16 14:02 UTC
From: jmjt at lut dot fi Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.6 OS: WinNT4.0 SP6
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jmjt at lut dot fi
New email:
PHP Version: OS:

 

 [2001-09-05 11:03 UTC] jmjt at lut dot fi
First off: there is no need to. A read-only cursor would do just fine on a PHP. On a PHP-script it is impossible to update any data via a open cursor.

This would avoid the infamous
SL002: Positioned request could not be performed because result set was created by a join condition.

The error can be reproduced by simply executing a SQL-clause with a join in it on a MS SQL 7.x or greater. Joins on a MS SQL (or Sybase) are not updateable so a read-only cursor is required.

Also it would be nice to warn users that odbc_fetch_into
cannot be used to retrieve any data selected with a join.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-16 14:02 UTC] kalowsky@php.net
This bug has been fixed in CVS.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 21:01:30 2025 UTC