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

Conversation

t4k
Copy link
Contributor

@t4k t4k commented Feb 13, 2019

see #445

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/

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 t4k added the bug This is a bug (not an enhancement) label Feb 13, 2019
@t4k t4k added this to In progress in MySQL version compatibility review via automation Feb 13, 2019
@t4k t4k changed the title management: use ANY_VALUE() around shortName column issue #445, management: use ANY_VALUE() around shortName column Feb 13, 2019
@t4k t4k self-assigned this Mar 22, 2019
@t4k
Copy link
Contributor Author

t4k commented Mar 22, 2019

As noted in #536 the use of ANY_VALUE() is incompatible with MariaDB. This needs work.

MariaDB does not have ANY_VALUE() function.
@jeffnm
Copy link
Member

jeffnm commented Apr 29, 2019

@t4k can this be tested or does it still need more work?

@t4k
Copy link
Contributor Author

t4k commented May 2, 2019

@jeffnm I believe the last commit should have it working. It can be tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug (not an enhancement)
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants