bugphpGroupWare - Bugs: bug #3376, Wrong database relation


You are not allowed to post comments on this tracker with your current authentication level.

bug #3376: Wrong database relation

Submitted by:  Kai Hofmann <powerstat>
Submitted on:  Tue Apr 29 09:09:26 2003  
Item Group: NoneCategory: projects
Severity: 3 - NormalPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: Bettina Gille <ceb>Open/Closed: Open
Component Version: NoneOperating System: None
Reproducibility: NonePlanned Release:
Fixed Release: 

Tue Apr 29 09:09:26 2003, original submission:

This join statement is wrong - there is no connection between the two tables - should be:
"phpgw_p_projects.id = join phpgw_p_hours.project_id WHERE "

$this->db->query("SELECT title,num,phpgw_p_projects.id as id FROM phpgw_p_projects $join phpgw_p_hours ON "
. "phpgw_p_hours.employee='" . $account_id . "' GROUP BY title,num,phpgw_p_projects.id",__LINE__,__FILE__);

Kai Hofmann <powerstat>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu Jul 15 22:59:39 2004skwashdPlanned ReleaseNone=>
Wed Apr 30 00:16:06 2003skwashdAssigned toNone=>NA

Back to the top

Powered by Savane 3.1-cleanup1