Skip to content

Commit f525f75

Browse files
Minor reword
1 parent 8e50933 commit f525f75

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

reference/configuration/doctrine.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +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-
If the server version is specified without quotes (i.e. ``5.6``), then the
367-
resulting compiled container will contain the value ``5.5999999999999996447286321199499070644378662109375``.
368-
369-
This is a result of floating-point representation issues. Quoting the
370-
value will avoid that and will deliver the string ``'5.6'`` to the
371-
``version_compare`` function, as it's expecting.
366+
Always wrap the server version number with quotes to parse it as a string
367+
instead of a float number. Otherwise, the floating-point representation
368+
issues can make your version be considered a different number (e.g. ``5.6``
369+
will be rounded as ``5.5999999999999996447286321199499070644378662109375``).
372370

373371
If you don't define this option and you haven't created your database
374372
yet, you may get ``PDOException`` errors because Doctrine will try to

0 commit comments

Comments
 (0)