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

ResultSet#getTime(int, java.util.Calendar) ignores the Calendar parameter

Details

    Description

      Calling java.sql.ResultSet#getTime(int, java.util.Calendar) with a non-null calendar parameter results in the Calendar being ignored and some other timezone being used to retrieve the time. I don't know which timezone is used exactly, maybe the JVM timezone or the server timezone, but one thing is fore sure: it's not the one of the provided calendar.

      This may look similar to CONJ-349 at first look, but I this other ticket relates to a much older version of Connector/J and, I think, a different problem.

      I will submit a PR with test and fix soon.

      Attachments

        Issue Links

          Activity

            yrodiere Yoann Rodiere created issue -
            yrodiere Yoann Rodiere made changes -
            Field Original Value New Value
            diego dupin Diego Dupin made changes -
            Fix Version/s 2.5.0 [ 23257 ]
            diego dupin Diego Dupin made changes -
            Component/s JDBC 4.2 compatibility [ 14001 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            diego dupin Diego Dupin made changes -
            Fix Version/s 2.4.4 [ 23902 ]
            Fix Version/s 2.5.0 [ 23257 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 99220 ] MariaDB v4 [ 135127 ]

            People

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