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

UNSIGNED_ATTRIBUTE column is always true

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.7.8, 3.1.2
    • 2.7.9, 3.1.3
    • metadata
    • None
    • Fedora Linux, OpenJDK 11 (java-11-openjdk-11.0.17.0.8-1.fc37.x86_64)

    Description

      When retrieving type metadata from the database using getTypeInfo(), the boolean value of the UNSIGNED_ATTRIBUTE column is always true.

      Sample code to reproduce the issue (with database running on localhost):

      Connection con = DriverManager.getConnection("jdbc:mariadb://localhost:3306/database?user=user&password=password");
      ResultSet typeInfo = con.getMetaData().getTypeInfo();
      while(typeInfo.next()) {
      	System.out.println(typeInfo.getString("TYPE_NAME") + ": " + typeInfo.getBoolean("UNSIGNED_ATTRIBUTE"));
      }
      

      This outputs the type names of all data types and the UNSIGNED_ATTRIBUTE being true for all of them, regardless of them having the UNSIGNED attribute or not.

      Attachments

        Activity

          People

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