Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-49305

Add sql_round dml function to prevent cross-platform problems

    XMLWordPrintable

    Details

      Description

      The ROUND sql function has different results in MSSQL compared to MySQL and Postgres. This function allows platform specific implementations of the ROUND function to be made. The standard behaviour of ROUND in MySQL and Postgres is taken to be correct, and MSSQL specific code is provided to ensure it matches.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              nathanl Nathan Lewis
              Peer reviewer:
              David Monllaó David Monllaó
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: