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
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

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


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC