Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-308

Various issues with SQL_NUMERIC type conversions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.11
    • Fix Version/s: 3.1.12
    • Component/s: General
    • Labels:
      None

      Description

      There are issues in the conversion in both directions - from SQL_NUMERIC_STRUCT to string, and from string to the struct.
      Mostly that is not detected or incorrectly detected overflow.
      Also, negative scale is incorrectly processed in many cases.
      Current SQL_NUMERIC_STRUCT->string conversion algorithm cannot correctly process >8bytes numbers, but doesn't report the error in this case either.
      If scale is > max supported(38) no warning is returned, and this value is used.

        Attachments

          Activity

            People

            Assignee:
            Lawrin Lawrin Novitsky
            Reporter:
            Lawrin Lawrin Novitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration