From e6a9c1d18dd31d029330c1a410b16244150136d9 Mon Sep 17 00:00:00 2001 From: Tristan Bessoussa Date: Wed, 4 Apr 2018 15:24:07 +0200 Subject: [PATCH] Add a note about correct cfg value server_version for MariaDB --- reference/configuration/doctrine.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index 185bf971d7d..b660f78bc54 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -363,7 +363,10 @@ The following block shows all possible configuration keys: to find your PostgreSQL version and ``mysql -V`` to get your MySQL version). - Always wrap the server version number with quotes to parse it as a string +   If you are running a MariaDB database, you should prefix the ``server_version`` + with ``mariadb-`` (e.g. ``server_version: mariadb-10.2.12``). + +   Always wrap the server version number with quotes to parse it as a string instead of a float number. Otherwise, the floating-point representation issues can make your version be considered a different number (e.g. ``5.6`` will be rounded as ``5.5999999999999996447286321199499070644378662109375``).