Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 91880 invoked from network); 18 Aug 2005 14:42:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2005 14:42:07 -0000 Received: (qmail 32639 invoked by uid 500); 18 Aug 2005 14:41:58 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 32567 invoked by uid 500); 18 Aug 2005 14:41:57 -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 32531 invoked by uid 99); 18 Aug 2005 14:41:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 07:41:55 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id CD2A8E3 for ; Thu, 18 Aug 2005 16:41:54 +0200 (CEST) Message-ID: <1962999116.1124376114838.JavaMail.jira@ajax.apache.org> Date: Thu, 18 Aug 2005 16:41:54 +0200 (CEST) From: "Fernanda Pizzorno (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-517) RecordSet - relative(int rows) behaves different in embedded and client/server mode when the positioning before the first row or after the last row. Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N RecordSet - relative(int rows) behaves different in embedded and client/server mode when the positioning before the first row or after the last row. ---------------------------------------------------------------------------------------------------------------------------------------------------- Key: DERBY-517 URL: http://issues.apache.org/jira/browse/DERBY-517 Project: Derby Type: Bug Components: Network Client Reporter: Fernanda Pizzorno Assigned to: Fernanda Pizzorno RecordSet - relative(int rows) behaves different in embedded and client/server mode when the positioning before the first row or after the last row. The embedded driver shows the behaviour described in the JDBC 3.0 specification, returning false and postitioning in either before first or after last. While the client/server driver returns true and incrementing/decrementing the current row by "rows" and not setting the position to either before first of after last. I have run a test with a result set with 10 rows, where I positioned in row 5 and moved +20 and - 20 using relative(int rows). With the embedded driver the method returned false, the current row was set to 0 and isAfterLast() and isBeforeFirst() returned true (for +20 and -20 respectively). With the client/server driver the method returned true, the current row was set to 25 and -15 (for +20 and -20 respectively) and isAfterLast() and isBeforeFirst() returned false. I have also run a test as the first one but running next() 5 times instead of absolute(5) for postitioning in row 5, and then relative(20) produced the expected results with the client/server driver. -- 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