|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57113 returned result incomplete
Submitted: 2006-06-27 17:48 UTC Modified: 2013-02-18 00:35 UTC
From: jordan at ithinc dot net Assigned:
Status: No Feedback Package: PDO_ODBC (PECL)
PHP Version: 5.1.2 OS: Windows XP
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: jordan at ithinc dot net
New email:
PHP Version: OS:


 [2006-06-27 17:48 UTC] jordan at ithinc dot net
I'm tring to get information from an access database using a join of 2 tables. The columns used in the join condition is returned by PHP incorrectly. On small datasets everything works fine. For larger datasets the bug always occurs. 

I have already compacted/repaired the database, this is not the problem. The query works fine in actual access database.

for now fetching by column number will work but fetching associative does not


Note: This bug is on PHP 5.1.4, for some reason I can't select a 5.1.4 version in the dropdown. 

Reproduce code:
$dsn = "odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\\test.mdb";
$DB = new PDO($dsn, null, null);
$res = $DB->query($SQL);
foreach($res->fetchAll(PDO::FETCH_ASSOC) as $row)

Expected result:
    [AID] => 1
    [INFO] => info
    [BID] => 2
    [DATA] => data

Actual result:
    [AID] => 
    [INFO] => info
    [BID] => 2
    [DATA] => data
none of the returned arrays contain AID

if $res->fetchAll() is used we instead get the following:

    [AID] =>
    [0] => 1
    [INFO] => info
    [1] => info
    [BID] => 2
    [2] => 2
    [3] => 1
    [DATA] => data
    [4] => data


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-10 22:20 UTC]
Please try the next stable 5.2 snapshot from
It's not clear from your report, but I think the issue you had was that you'd lose the data for columns after the last "long" column in your dataset.
If that is correct, then the next snapshot (or PHP 5.2) is what you're waiting for.
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 09:01:30 2024 UTC