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

CallableStatement.getParameterMetadata returns wrong java.sql.Type for boolean

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.5.3
    • metadata
    • None
    • any

    Description

      Java CallableStatement.getParameterMetadata returns wrong java.sql.Type for boolean.

      SQL:
      create procedure p_boolean(in x boolean, out y boolean)
      begin set y = x; end;

      Java:
      var call = cn.prepareCall("call p_boolean(?, ?)");
      call.getParameterMetaData().getParameterType(1); // -6 but 16 expected
      call.getParameterMetaData().getParameterType(2); // -6 but 16 expected

      Attachments

        Activity

          dgorodetskiy Gorodetskiy Dmitry created issue -
          diego dupin Diego Dupin made changes -
          Field Original Value New Value
          Fix Version/s 3.5.3 [ 30102 ]
          diego dupin Diego Dupin made changes -
          Component/s metadata [ 14002 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]

          People

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