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

Incorect Display Size for decimal column

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.17, 3.0.5
    • Fix Version/s: 3.0.6, 2.0.18
    • Component/s: General
    • Labels:
      None

      Description

      To repeat.
      OK_SIMPLE_STMT(Stmt, "SELECT cast('123456789.5678' as decimal(20,4))");

      CHECK_STMT_RC(Stmt, SQLColAttribute(Stmt, 1, SQL_COLUMN_DISPLAY_SIZE, NULL, 0, NULL, &Size));
      /* 20(precision) + sign + decimal point */
      is_num(Size, 22);

      For some reason connector erroneously returned constant value for decimal types.

        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: