Open pbarmak opened 1 year ago
My guess is this is coming from https://github.com/civicrm/org.civicrm.civicase/blob/b49c4fa89c6769c3f57f4229c39032915bd60af3/CRM/Civicase/Upgrader.php#L126 but is actually a core issue where it doesn't backtick the field name (as you've guessed).
Just adding backticks at that line 126 might be a quick fix but the right fix is probably in core, either somewhere in here https://github.com/civicrm/civicrm-core/blob/256615ed864ef113de36d1f986090f388d5ef5ba/api/v3/Generic/Setvalue.php#L27 or probably better lower down in CRM_Core_DAO::setFieldValue.
I don't know if this extension is maintained anymore, it would be nice to get status on it. I just tried installing it on a Drupal 9 install with MySQL 8 and get the following error thrown. I'm guessing because the word "grouping" is a system keyword in MySQL 8 and needs backticks around it? I'm not sure where the SQL statement is being built to test out my theory. This may be an issue with API v3 or event the call to setvalue (which I understand is deprecated). I'm guessing CiviCase has not been updated in a long time.