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

Unable to update ResultSet

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • Other
    • 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

              diego dupin Diego Dupin
              trajano Archimedes Trajano
              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.