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

issue #445, management: use ANY_VALUE() around shortName column #537

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Commits on Feb 13, 2019

  1. use ANY_VALUE() around shortName column

    Using the ANY_VALUE() function suppresses the test for nondeterminism.
    
    https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_any-value
    
    ```
    PHP Fatal error:  Uncaught exception 'Exception' with message 'There was a
    problem with the database: Expression #1 of SELECT list is not in GROUP BY
    clause and contains nonaggregated column 'coral_management.L.shortName' which is
    not functionally dependent on columns in GROUP BY clause; this is incompatible
    with sql_mode=only_full_group_by' in …/management/admin/classes/common/DBService.php:55
    Stack trace:
    #0 …/management/admin/classes/common/DBService.php(82): DBService->checkForError()
    #1 …/management/admin/classes/domain/License.php(804): DBService->query('\\n\\t\\t\\tSELECT\\n\\t\\t\\t\\t...')
    #2 …/management/admin/classes/common/Object.php(55): License->getAlphabeticalList()
    #3 …/management/index.php(229): Object->__get('getAlphabetical...')
    #4 {main}
      thrown in …/management/admin/classes/common/DBService.php on line 55,
      referer: http://localhost:8080/coral/licensing/
    ```
    t4k committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    8ff8681 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2019

  1. match select and group by item exactly

    MariaDB does not have ANY_VALUE() function.
    t4k committed Mar 22, 2019
    Configuration menu
    Copy the full SHA
    762f824 View commit details
    Browse the repository at this point in the history