php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30687 Second read attempt on memo (LONGCHAR) fields via ODBC fails
Submitted: 2004-11-04 17:44 UTC Modified: 2005-03-15 01:00 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: albin at kth dot se Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 5CVS-2004-11-04 (dev) OS: Windows XP Pro SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 + 41 = ?
Subscribe to this entry?

 
 [2004-11-04 17:44 UTC] albin at kth dot se
Description:
------------
There seems to be a problem reading Memo-fields (ODBC-type LONGCHAR) from an MS-Access database via ODBC... The first attempt is successfull, but if you try to read the same field again from the same result-set you get nothing. 
Reading non-memo-fields multiple times works OK.

Reproduce code:
---------------
$db = odbc_connect('DATABASE','XXXX','XXXX');
$res = odbc_exec($db, "SELECT Body FROM Letters WHERE LetterID = X");

echo "First attempt: ".odbc_result($res, 'Body'); // displays the letter body
echo "Second attempt: ".odbc_result($res,'Body'); // displays nothing


Expected result:
----------------
First attempt: [Letter body]
Second attempt: [Letter body]

Actual result:
--------------
First attempt: [Letter body]
Second attempt: 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-07 21:59 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-03-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 06:01:30 2024 UTC