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 1C8477975 for ; Mon, 19 Dec 2011 20:59:55 +0000 (UTC) Received: (qmail 72977 invoked by uid 500); 19 Dec 2011 20:59:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 72955 invoked by uid 500); 19 Dec 2011 20:59:54 -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 72948 invoked by uid 99); 19 Dec 2011 20:59:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2011 20:59:54 +0000 X-ASF-Spam-Status: No, hits=-2002.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; Mon, 19 Dec 2011 20:59: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 BFD0C11C6EE for ; Mon, 19 Dec 2011 20:59:30 +0000 (UTC) Date: Mon, 19 Dec 2011 20:59:30 +0000 (UTC) From: "Dag H. Wanvik (Commented) (JIRA)" To: derby-dev@db.apache.org Message-ID: <2141893042.27778.1324328370787.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1062531778.3953.1323740970630.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5534) ResultSet#updateFloat, #updateDouble do not check for NaN on client 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-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172602#comment-13172602 ] Dag H. Wanvik commented on DERBY-5534: -------------------------------------- Cf also DERBY-5546: even the embedded driver misses the underflow check when converting from BigDecimal: make sure to add it for client too when we fix this issue. > ResultSet#updateFloat, #updateDouble do not check for NaN on client > ------------------------------------------------------------------- > > Key: DERBY-5534 > URL: https://issues.apache.org/jira/browse/DERBY-5534 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client > Reporter: Dag H. Wanvik > Priority: Minor > > In updateXXX, where XXX is one of Float or Double, embedded throws value out of range when the argument is Float.NaN or Double.NaN, the client does not catch it. > The server will balk when the row is updated, though, in ResultSet#updateRow. It will be more regular if this is caught in updateXXX also on the client as other range errors are. The SQL state seen is 22003, which is what embedded throws on updateXXX. See also DERBY-5533. -- 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