Skip to content

Commit

Permalink
Add a note about correct configuration value server_version for MariaDB
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanbes authored Apr 4, 2018
1 parent 6f3e0c4 commit e47b6e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reference/configuration/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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-`` (ex: ``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``).
Expand Down

0 comments on commit e47b6e8

Please sign in to comment.