Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7295

cast($expression as float) should work

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      I've just stumbled again about mariadbs inability to cast stuff to float. Decimal is supported, but float is not (while it is available as a type).

      To me that is an inconsistency that should be avoided - therefore casting to float should be allowed.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -
            Show
            elenst Elena Stepanova added a comment - That's how it is in the upstream MySQL: http://dev.mysql.com/doc/refman/5.7/en/cast-functions.html#function_cast
            Hide
            dwt Martin Häcker added a comment -

            Very true - and that should change. It's quite annoying.

            Show
            dwt Martin Häcker added a comment - Very true - and that should change. It's quite annoying.

              People

              • Assignee:
                Unassigned
                Reporter:
                dwt Martin Häcker
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: