|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26130 IBM DB2 Unique Key Problem
Submitted: 2003-11-05 00:43 UTC Modified: 2003-11-25 15:32 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jay at nicwr dot mah dot nic dot in Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 4.3.4 OS: Linux 8.0
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: jay at nicwr dot mah dot nic dot in
New email:
PHP Version: OS:


 [2003-11-05 00:43 UTC] jay at nicwr dot mah dot nic dot in
I have IBM DB2 V 7.2 EE Fix Pack 7
My Php is enabled with ibm-db2 support

I have a table test (c1 int not null,c2 int,c3 int)
I have a unique key on table test as (c1) with include options for (c2,C3)
If I have a sample data
If I access the data thru my php script I do not get desirable result.

Reproduce code:

	$sel="Select c1,c2,c3 from dbadmin.test";
	echo "Record : ";
	echo odbc_result($odbc_res,1);
	echo "-";
	echo odbc_result($odbc_res,2);
	echo "-";
	echo odbc_result($odbc_res,3);
	echo "-End Record<br>";

Expected result:
Expected Result is as follows
Record:1---End Record
Record:2-1--End Record
Record:3--1-End Record
Record:4-1-2-End Record

Actual result:
Actual Results Appear as follows
Record : ---End Record
Record : ---End Record
Record : ---End Record
Record : 4-1-2-End Record


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-05 00:51 UTC]
Please upgrade first to PHP 4.3.4.
And then try this script and paste the output here:

  $Conn = odbc_connect("dbname","db2admin","db2admin");
  $sel = "Select c1,c2,c3 from dbadmin.test";
  $odbc_res = odbc_exec($Conn,$sel);
  while (odbc_fetch_row($odbc_res)) {

 [2003-11-18 05:03 UTC]
Please provide the requested feedback (see the code in my previous comment..)

 [2003-11-25 15:32 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: Sat Apr 20 16:01:29 2024 UTC