Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group Concat has Problem With Filtering #76

Open
haider-pw opened this issue Dec 8, 2014 · 1 comment
Open

Group Concat has Problem With Filtering #76

haider-pw opened this issue Dec 8, 2014 · 1 comment

Comments

@haider-pw
Copy link

Ok. Just Got Stucked Recently in Problem where Group Concat dont work with Filtering.

Here is the Codeigniter Response


Error Number: 1111

Invalid use of group function

SELECT `E`.`employee_id`, `E`.`full_name`, `MLD`.`designation_name`, GROUP_CONCAT(DISTINCT MLP.project_title) AS Projects, GROUP_CONCAT(DISTINCT MLST.skill_name) AS EmployeeSkills FROM (`emp_skills` ES) INNER JOIN `employee` E ON `E`.`employee_id`= `ES`.`employee_id` INNER JOIN `ml_skill_type` MLST ON `MLST`.`skill_type_id` = `ES`.`ml_skill_type_id` INNER JOIN `employment` ET ON `ET`.`employee_id` = `E`.`employee_id` INNER JOIN `position_management` PM ON `PM`.`employement_id`=`ET`.`employment_id` AND PM.current=1 INNER JOIN `ml_designations` MLD ON `MLD`.`ml_designation_id`=`PM`.`ml_designation_id` LEFT JOIN `assign_job` AJ ON `AJ`.`employee_id` = `E`.`employee_id` LEFT JOIN `ml_projects` MLP ON `MLP`.`project_id` = `AJ`.`project_id` WHERE (E.full_name LIKE '%s%' OR MLD.designation_name LIKE '%s%' OR GROUP_CONCAT(DISTINCT MLP.project_title) LIKE '%s%' OR GROUP_CONCAT(DISTINCT MLST.skill_name) LIKE '%s%' ) GROUP BY `E`.`employee_id` LIMIT 25

Filename: C:\xampp\htdocs\projects\HR\system\database\DB_driver.php

Did any one found any good solution to make filtering work with both GroupConcat fields and Normal Fields.??

Im Using v0.7
https://github.com/pakistanihaider/HouseRentSystem/blob/master/application/libraries/Datatables.php

@haider-pw
Copy link
Author

Plus Just Found Out, If used Group_Concat used then pagination and records gets buggy. please Resolve this issue fast...
capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant