Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19509

Add character set and collation to create table statements in reports

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.16
    • Component/s: CiviReport
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      I have recently added some code to fix an error in the Activity Summary report. This error was caused by a potential difference in character set and collation between the CiviCRM tables and the temporary tables created by the report.

      See: https://issues.civicrm.org/jira/browse/CRM-19503

      It is likely that other reports (and possibly other parts of CiviCRM) will suffer from the same problem.

      It should be fairly straightforward to fix this by searching for "CREATE TEMPORARY TABLE" and adding

      $this->_databaseAttributes
      

      to the SQL statement - as per my pull request: https://github.com/civicrm/civicrm-core/pull/9264

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wmortada William Mortada
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified