Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.6.8, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL)
-
Docker container
Description
When starting the mariadb 10.6.8 docker container with
, it fails to initialize with--sql-mode=ONLY_FULL_GROUP_BY
ERROR 1140 (42000) at line 2: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Here a more complete docker run command that we use in Nextcloud server for testing:
docker run -it --rm \
--name mariadb \
-e MYSQL_ROOT_PASSWORD=owncloud \
-e MYSQL_USER=oc_autotest \
-e MYSQL_PASSWORD=owncloud \
-e MYSQL_DATABASE=oc_autotest \
ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest \
--sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
(The docker image is based on the official mariadb10.6.8 docker image and nothing is modified)
Thanks for the report.
The problem is not limited to docker containers, general timezone initialization fails the same way. Apparently the failure was brought by
commit 13e77930e615f05cc74d408110e887b00e1abcc9
Author: Daniel Black
Date: Wed Apr 6 13:12:21 2022 +1000
MDEV-28263: mariadb-tzinfo-to-sql improve wsrep and binlog cases
which introduced the query in question.