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

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5.9
    • Fix Version/s: N/A
    • Component/s: JDBC 4.2 compatibility
    • Labels:
      None
    • Environment:
      java 1.7 with 1.5.9 version.

      Description

      public <T> T getObject(String columnLabel, Class<T> type) throws SQLException;

      integer column reading as string .But iam passing class as second parameter to getObject Method.

      In mysql the value returning as String .
      But in Maria DB driver it is giving as Integer.

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            banesh banesh banna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: