Skip to content

Commit e6a9c1d

Browse files
tristanbesjaviereguiluz
authored andcommitted
Add a note about correct cfg value server_version for MariaDB
1 parent 6f3e0c4 commit e6a9c1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

reference/configuration/doctrine.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ The following block shows all possible configuration keys:
363363
to find your PostgreSQL version and ``mysql -V`` to get your MySQL
364364
version).
365365

366-
Always wrap the server version number with quotes to parse it as a string
366+
  If you are running a MariaDB database, you should prefix the ``server_version``
367+
with ``mariadb-`` (e.g. ``server_version: mariadb-10.2.12``).
368+
369+
  Always wrap the server version number with quotes to parse it as a string
367370
instead of a float number. Otherwise, the floating-point representation
368371
issues can make your version be considered a different number (e.g. ``5.6``
369372
will be rounded as ``5.5999999999999996447286321199499070644378662109375``).

0 commit comments

Comments
 (0)