Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1231

add option nopad for digits for floating datatype (double, real)

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • None
    • N/A
    • JDBC compatibility
    • None

    Description

      jdbc connector 3.x added zeros in the digit part for double(M,D) up to D.

      jdbc connector 2.7 truncates the zeroes

      3.x behaviour is identical to standard client.

      MariaDB [dbs3]> select cast(0.18174900 as double),cast(0.18174900 as double(24,8)),cast(0.18174900 as double(24,7));
      +----------------------------+----------------------------------+----------------------------------+
      | cast(0.18174900 as double) | cast(0.18174900 as double(24,8)) | cast(0.18174900 as double(24,7)) |
      +----------------------------+----------------------------------+----------------------------------+
      |                   0.181749 |                       0.18174900 |                        0.1817490 |
      +----------------------------+----------------------------------+----------------------------------+
      1 row in set (0,000 sec)
      

      For compatibility reason, an option could be useful like

      no_pad_for_digits

      where default value is no/0

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              Richard Richard Stracke
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.