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

getColumnDisplaySize() give back zero when column type is LONGVARCHAR

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 1.1.8
    • N/A
    • metadata
    • None
    • Windows 7 64-bit

    Description

      Hello

      the method getColumnDisplaySize() in ResultSetMetaData give back zero when the column type is LONGVARCHAR.

      I have created tableX with one column of type longtext in the database and when I query the display size, then its 0.

      ResultSet rs1 = stmt1.executeQuery("select * from tableX");
      try
      {
        ResultSetMetaData resultSetMetaDataOfTable = rs1.getMetaData();
        int iColumnDisplaySize = resultSetMetaDataOfTable.getColumnDisplaySize(1);
        System.out.println(iColumnDisplaySize); // output is 0
      }

      Attachments

        Activity

          People

            georg Georg Richter
            eidbadr Eid Badr
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.