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

Checklist builder: Download extensive list as a Darwin Core Archive fails #39

Open
JeGoi opened this issue Nov 22, 2018 · 1 comment
Open
Labels

Comments

@JeGoi
Copy link
Contributor

JeGoi commented Nov 22, 2018

In Vascan front end, when you try to create a archive from Checklist builder "Download extensive list as a Darwin Core Archive", it fails and return an error.
In Vascan log:

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'vascan_newprod.lookup.status' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

@JeGoi JeGoi added the bug label Nov 22, 2018
@JeGoi
Copy link
Contributor Author

JeGoi commented Nov 22, 2018

It is due to the passage from mysql 5.1 to 5.7
@cgendreau has found : "However, in MySQL prior to version 5.7 the default behaviour has been more forgiving because it will not complain and then arbitrarily choose any value!"
On ubuntu 16.04, it could be temporarely fixed with:
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
and add this line after [mysqld]
sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

@JeGoi JeGoi changed the title Checklist builder: Download extensive list as a Darwin Core Archive failed Checklist builder: Download extensive list as a Darwin Core Archive fails Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant