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

Unable to update ResultSet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: Other
    • Labels:
      None

      Description

      I was trying to do some performance improvements on on of my LOB operations and reducing the amount of I/O with the database utilizing result sets, specifically updating result sets.

      However, I got Updates are not supported most likely from https://github.com/MariaDB/mariadb-connector-j/blob/master/src/main/java/org/mariadb/jdbc/internal/com/read/resultset/SelectResultSet.java#L2276

      If updates are not supported (which is kind of lousy) you should be able to fail it sooner specifically from detecting if ResultSet.CONCUR_UPDATABLE was passed on the prepared statement. e.g. from my code base:

      PreparedStatement selectStmt =
      c.prepareStatement("SELECT NAME, CHUNKSEQUENCE, CHUNK, LASTUPDATEDON FROM LOBDATA where NAME = ? order by CHUNKSEQUENCE",
      ResultSet.TYPE_FORWARD_ONLY,
      ResultSet.CONCUR_UPDATABLE);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              diego dupin Diego Dupin
              Reporter:
              trajano Archimedes Trajano
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: