|  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
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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: albin at kth dot se
New email:
PHP Version: OS:


 [2004-11-04 17:44 UTC] albin at kth dot se
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: 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-07 21:59 UTC]
Please try using this CVS snapshot:
For Windows:

 [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-2023 The PHP Group
All rights reserved.
Last updated: Tue Dec 05 16:01:29 2023 UTC