Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F7A19700 for ; Sat, 17 Dec 2011 00:29:03 +0000 (UTC) Received: (qmail 27828 invoked by uid 500); 17 Dec 2011 00:29:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 27790 invoked by uid 500); 17 Dec 2011 00:29:02 -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: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 27741 invoked by uid 99); 17 Dec 2011 00:29:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Dec 2011 00:29:02 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Dec 2011 00:28:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DA785117432 for ; Sat, 17 Dec 2011 00:28:30 +0000 (UTC) Date: Sat, 17 Dec 2011 00:28:30 +0000 (UTC) From: "Dag H. Wanvik (Resolved) (JIRA)" To: derby-dev@db.apache.org Message-ID: <821504656.21547.1324081710896.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <335618798.2171.1323716731479.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (DERBY-5533) Client differs from embedded when rs.updateInt overflows: 22015 vs 22003 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik resolved DERBY-5533. ---------------------------------- Resolution: Fixed Fix Version/s: 10.9.0.0 Issue & fix info: (was: Patch Available) > Client differs from embedded when rs.updateInt overflows: 22015 vs 22003 > ------------------------------------------------------------------------ > > Key: DERBY-5533 > URL: https://issues.apache.org/jira/browse/DERBY-5533 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Priority: Minor > Fix For: 10.9.0.0 > > Attachments: derby-5533-repro.diff, derby-5533-test.diff, derby-5533.diff, derby-5533.stat, derby-5533b.diff, derby-5533b.stat > > > stm.executeUpdate("create table t(i smallint)"); > stm.executeUpdate("insert into t values 1,2,3,4"); > ResultSet rs = stm.executeQuery("select i from t"); > rs.next(); > try { > rs.updateInt(1, 100000); > } catch (SQLException e) { > // client: 22015 vs embedded 22003 > } > According to the standard, 22015 should be used for INTERVALs ("interval field overflow"). 22003 seems more correct, the standard uses that for "numeric value out of range". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira