You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Jeff Butler (JIRA)" <ib...@incubator.apache.org> on 2005/07/28 15:49:18 UTC

[jira] Updated: (IBATIS-176) Add support for DECIMAL/NUMERIC scale on Stored Procedure Output Parameters

Mime-VerFrom dev-return-1669-apmail-ibatis-dev-archive=ibatis.apache.org@ibatis.apache.org Thu Jul 28 13:49:41 2005
Return-Path: <de...@ibatis.apache.org>
Delivered-To: apmail-ibatis-dev-archive@www.apache.org
Received: (qmail 51385 invoked from network); 28 Jul 2005 13:49:39 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
  by minotaur.apache.org with SMTP; 28 Jul 2005 13:49:39 -0000
Received: (qmail 33151 invoked by uid 500); 28 Jul 2005 13:49:35 -0000
Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org
Received: (qmail 33107 invoked by uid 500); 28 Jul 2005 13:49:34 -0000
Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm
Precedence: bulk
List-Help: <ma...@ibatis.apache.org>
List-Unsubscribe: <ma...@ibatis.apache.org>
List-Post: <ma...@ibatis.apache.org>
List-Id: <dev.ibatis.apache.org>
Reply-To: dev@ibatis.apache.org
Delivered-To: mailing list dev@ibatis.apache.org
Received: (qmasion: 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

     [ http://issues.apache.org/jira/browse/IBATIS-176?page=all ]

Jeff Butler updated IBATIS-176:
-------------------------------

    Attachment: DecimalTest.zip

This file includes a simple test case showing how to use decimal output parameters with iBATIS.  The test case works with DB2 8.1.9, but likely fails with DB2 7.1.

> Add support for DECIMAL/NUMERIC scale on Stored Procedure Output Parameters
> ---------------------------------------------------------------------------
>
>          Key: IBATIS-176
>          URL: http://issues.apache.org/jira/browse/IBATIS-176
>      Project: iBatis for Java
>         Type: New Feature
>   Components: SQL Maps
>     Versions: 2.1.5
>  Environment: iBATIS is currently known to fail with DB2 7.1 CLI drivers.
>     Reporter: Jeff Butler
>     Priority: Minor
>  Attachments: DecimalTest.ziil 33031 invoked by uid 500); 28 Jul 2005 13:49:33 -0000
Delivered-To: apmail-incubator-ibatis-dev@incubator.apache.org
Received: (qmail 32984 invoked by uid 99); 28 Jul 2005 13:49:33 -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, 28 Jul 2005 06:49:21 -0700
Received: from ajax.apache.org (ajax.apache.org [127.0.0.1])
	by ajax.apache.org (Postfix) with ESMTP id 482DDE0
	for <ib...@incubator.apache.org>; Thu, 28 Jul 2005 15:49:18 +0200 (CEST)
Message-ID: <16...@ajax.apache.org>
Date: Thu, 28 Jul 2005 15:49:18 +0200 (CEST)
From: "Jeff Butler (JIRA)" <ib...@incubator.apache.org>
To: ibatis-dev@incubator.apache.org
Subject: [jira] Created: (IBATIS-176) Add support for DECIMAL/NUMERIC scale on Stored Procedure Output Parameters
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encp
>
> The JDBC spec recommends setting the numeric scale when registering output parameters of type DECIMAL/NUMERIC.  iBATIS should support this recommendation so that weaker JDBC drivers (like DB2 7.1 driver) won't fail.
> The enhancement will require a change to the <parameter> element of a <parameterMap> - someway to specify the scale.  Either add syntax the the jdbcType attribute (e.g. DECIMAL:2), or add another optional attribute (e.g. jdbcNumericScale="2").  Then the method "registerOutputParameters" in the SqlExecuter class should change to support setting the scale for DECIMAL/NUMERIC types if specified.
> The SQL parsing logic will also have to change.

-- 
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


oding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

Add support for DECIMAL/NUMERIC scale on Stored Procedure Output Parameters
---------------------------------------------------------------------------

         Key: IBATIS-176
         URL: http://issues.apache.org/jira/browse/IBATIS-176
     Project: iBatis for Java
        Type: New Feature
  Components: SQL Maps  
    Versions: 2.1.5    
 Environment: iBATIS is currently known to fail with DB2 7.1 CLI drivers.
    Reporter: Jeff Butler
    Priority: Minor
 Attachments: DecimalTest.zip

The JDBC spec recommends setting the numeric scale when registering output parameters of type DECIMAL/NUMERIC.  iBATIS should support this recommendation so that weaker JDBC drivers (like DB2 7.1 driver) won't fail.

The enhancement will require a change to the <parameter> element of a <parameterMap> - someway to specify the scale.  Either add syntax the the jdbcType attribute (e.g. DECIMAL:2), or add another optional attribute (e.g. jdbcNumericScale="2").  Then the method "registerOutputParameters" in the SqlExecuter class should change to support setting the scale for DECIMAL/NUMERIC types if specified.

The SQL parsing logic will also have to change.


-- 
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