Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-49

MariaDB python connector and have noticed a difference in how things seem to be converted

    XMLWordPrintable

    Details

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

      Description

      We are testing out utilizing the MariaDB python connector and have noticed a difference in how things seem to be converted. We have a lot of processes that return the value as a decimal, and from that point we do comparisons on them. When running the MariaDB python connector, these seem to be converted into a string when returned from the database, this causing issues in the direct comparisons.

      MariaDB Connector return with decimal values, shown as a string:
      [['27', 53549, '0.0005', '0.9995']]

      Other connectors:
      [[Decimal('27'), 53549, Decimal('0.0005'), Decimal('0.9995')]]

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            hill David Hill
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: