|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17141 Self-References not supported
Submitted: 2002-05-10 09:14 UTC Modified: 2002-08-13 19:56 UTC
From: ernst at paradigma dot net Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 4.1.2 OS: AIX 4.3.3
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:
Solve the problem:
46 + 24 = ?
Subscribe to this entry?

 [2002-05-10 09:14 UTC] ernst at paradigma dot net
I was trying to view a self-referenced Table (parent_id is the id of another member); with OBDC towards DB2 (on AIX 4.3.3) PHP does not set the array right; I dont get the parents name but the childs name twice.

$conn=odbc_connect("db", "user", "pass");
$stmt="select a.bm_id, a.bm_bezeichnung, b.bm_bezeichnung as parent_bm_bezeichnung from schema.table a, schema.table b where b.bm_id=a.bes_bm_id";
print odbc_result_all($res);

ODBC Result
5 Tonband  Tonband  
6 Handy  Handy  

(the 2 is new, seems to be the "2 records selected" rest)

DB2 Result
------ -------------------- ---------------------
     5 Tonband              Telefonisch
     6 Handy                Telefonisch

  2 record(s) selected.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-13 18:28 UTC]
Can you please provide a sample schema to reproduce this locally and test this out further?
 [2002-08-13 19:56 UTC]
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: Fri Jun 21 15:01:29 2024 UTC