|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Sat Dec 09 07:01:27 2023 UTC