php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1246 odbc_fetch_row fails most times
Submitted: 1999-03-18 10:39 UTC Modified: 1999-07-11 04:40 UTC
From: stefan dot ohrhallinger at beko dot at Assigned: kara (profile)
Status: Closed Package: ODBC related
PHP Version: 3.0.7 OS: Linux 2.0.36/SuSE 6.0
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: stefan dot ohrhallinger at beko dot at
New email:
PHP Version: OS:

 

 [1999-03-18 10:39 UTC] stefan dot ohrhallinger at beko dot at
php3-script:
<?php $db = odbc_connect("tennisliste-ora", "stef", "stef"); ?>

$ortnr = 1;
$ort = odbc_prepare($db, "select beschreibung from ort where ortnr=$ortnr");
odbc_execute($ort);

$row = odbc_fetch_row($ort);

if ($row)
  echo "ort: $row";
else
  echo "fetch failed";

?>
---------------------
php3-configure-line:
./configure --with-shared-apache=/home/stef/apache --with-iodbc=/home/stef/iodbc/iodbc --with-mysql=/home/stef/mysql     
-----------------------
no alterations to any ini file, I run it as a module within apache 1.3.4
----------------------
The following setup is used:
Oracle Server under NT, with HotSockets ODBC Driver (middleware), I connect from he Linux via iODBC Driver Manager and HotSockets ODBC Driver.
The query above works 100% of the time when using a cmdline odbc test-tool, thru apache/php3 it fails 50-90% of the time, I couldn?t make out any relevant factors.
When using the same php3-script with the mysql database on the same machine, it works 100% as well.
My guess is that there are some quirks in the functions/unified_odbc.c - I already had to get rid of the trying to set dynamic cursors to get mysql to work.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-11 04:40 UTC] kara at cvs dot php dot net
Closing, seems to be a problem with HotSockets driver.
Couldn't get any further information.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 00:01:34 2025 UTC