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

Incorect Display Size for decimal column

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.0.17, 3.0.5
    • 3.0.6, 2.0.18
    • General
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.