avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25237] New: - InformixDataSource class uses wrong Informix function call
Date Fri, 05 Dec 2003 11:02:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25237>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25237

InformixDataSource class uses wrong Informix function call

           Summary: InformixDataSource class uses wrong Informix function
                    call
           Product: Avalon
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Framework
        AssignedTo: dev@avalon.apache.org
        ReportedBy: stefano.bertini@plangroup.it


In the InformixDataSource class rev: 1.16 Date: 2003/05/20 20:44:43
there is a bug at line 177 where you write

setProperty(pooledDataSource, "IfxCPMServiceInterval", new Integer( 100 ) );

as from version 2.21 of Informix JDBC driver, the setIfxCPMServiceInterval 
function requires a long value, not an int.

So, i fixed the problem changing the line to

setProperty(pooledDataSource, "IfxCPMServiceInterval", new Long( 100 ) );

and modifying the setProperty function adding these lines

if ( value instanceof Long )
{
  valueClass = Long.TYPE;
}

Hope this helps.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message