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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.8
    • Fix Version/s: N/A
    • Component/s: metadata
    • Labels:
      None
    • Environment:
      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

            Assignee:
            georg Georg Richter
            Reporter:
            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.