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

resultset.last() return wrong value if resultset has only one result

    XMLWordPrintable

Details

    Description

      Using resultset.last(), when resultset has one row, last() position correctly cursor set on last row, but return the "false" value. In this case, "true" value is expected.

      JDBC javadoc

      true if the cursor is on a valid row; false if there are no rows in the result set

      Other positionning/verification methods (like isBeforeFirst(), isAfterLast(), isFirst(), isLast(), first(), absolute(row), relative(row), previous(), next()) return correct result.

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              diego dupin Diego Dupin
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.