Uploaded image for project: 'MariaDB Connector/R2DBC'
  1. MariaDB Connector/R2DBC
  2. R2DBC-123

Pin Locale.ROOT on locale-sensitive wire-format codec sites

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.4.1
    • other
    • None

    Description

      When encoding TIME and DATETIME/TIMESTAMP parameters into the text protocol, several codecs format the value using the JVM's default locale instead of a fixed one: like DurationCodec builds the TIME literal with String.format("%d:%02d:%02d.%06d", …) without any Locale argument.

      Goal is too pass Locale.ROOT explicitly at every locale-sensitive formatting site in DurationCodec, InstantCodec, and LocalDateTimeCodec, so temporal/time wire formatting is deterministic and locale-independent.

      thanks to jmestwa-coder

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            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.