Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 17482 invoked from network); 12 May 2005 09:16:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2005 09:16:56 -0000 Received: (qmail 18599 invoked by uid 500); 12 May 2005 09:19:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 18417 invoked by uid 500); 12 May 2005 09:19:20 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 18342 invoked by uid 99); 12 May 2005 09:19:18 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 12 May 2005 02:19:17 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 427FB2E1 for ; Thu, 12 May 2005 11:15:17 +0200 (CEST) Message-ID: <1184560572.1115889317270.JavaMail.jira@ajax.apache.org> Date: Thu, 12 May 2005 11:15:17 +0200 (CEST) From: "Bernt M. Johnsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-276) ResultSet.relative(int row) cannot be called when the cursor is not positioned on a row. Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ResultSet.relative(int row) cannot be called when the cursor is not positioned on a row. ---------------------------------------------------------------------------------------- Key: DERBY-276 URL: http://issues.apache.org/jira/browse/DERBY-276 Project: Derby Type: Bug Components: JDBC Reporter: Bernt M. Johnsen If the cursor is not positioned on a row, calling ResultSet.relative() causes the following exception: Exception in thread "main" ERROR X0X87: ResultSet.relative(int row) cannot be called when the cursor is not positioned on a row. at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:301) at org.apache.derby.impl.sql.execute.ScrollInsensitiveResultSet.getRelativeRow(ScrollInsensitiveResultSet.java:336) at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:366) at org.apache.derby.impl.jdbc.EmbedResultSet.relative(EmbedResultSet.java:1840) However, The 1.4.2 Javadoc says: Note: Calling the method relative(1) is identical to calling the method next() and calling the method relative(-1) is identical to calling the method previous(). (This is confirmed by the JDBC 3.0 spec, ch. 14.2.2) Since next() is valid, so should rs.relative(1) (and all other arguments, since a too large value will position the cursor after the last row, and a too low value will position it before the first). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira