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

          There are no comments yet on this issue.

          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.