[ http://issues.apache.org/jira/browse/DERBY-453?page=all ]
Deepa Remesh updated DERBY-453:
-------------------------------
Attachment: derby-453.diff
derby-453.status
This patch will allow the test resultset.java to run J2ME/Foundation. The
changes are:
1. Added a new class ResultSet_BD, which provides wrappers for the following
ResultSet methods:
getBigDecimal(int columnIndex) ~ getBigDecimalString(ResultSet rs, int
columnIndex)
getBigDecimal(String columnName) ~ getBigDecimalStringFromName(ResultSet rs,
int columnIndex)
getObject(int columnIndex) ~ getObjectString(ResultSet rs, int columnIndex)
getObject(String columnName) ~ getObjectStringFromName(ResultSet rs, int
columnIndex)
2 . Modified resultset.java to call methods in ResultSet_BD instead of the
above ResultSet methods.
3. resultset.java was using the following deprecated ResultSet methods:
getBigDecimal(int columnIndex, int scale)
getBigDecimal(String columnName, int scale)
In ResultSet_BD, getBigDecimal(int columnIndex) and getBigDecimal(String
columnName) are called instead of the deprecated methods. The master file
resultset.out has been changed to match this.
4. The exclude flag "runwithfoundation=false" has been removed from
resultset_app.properties
I have tested this patch by running resultset.java with Sun Java 1.4.2 and IBM
WCTME 5.7 Foundation profile.
> Create a test wrapper to run tests using BigDecimal in J2ME/CDC/Foundation
> --------------------------------------------------------------------------
>
> Key: DERBY-453
> URL: http://issues.apache.org/jira/browse/DERBY-453
> Project: Derby
> Type: Improvement
> Components: Test
> Environment: J2ME/CDC/Foundation using IBM's WCTME 5.7
> Reporter: Deepa Remesh
> Assignee: Deepa Remesh
> Priority: Minor
> Attachments: derby-453.diff, derby-453.status
>
> The following tests are currently excluded in J2ME/CDC/Foundation because
> they use BigDecimal class.
> I18NImportExport
> batchUpdate
> LOBTest
> parameterMapping
> resultset
> StmtCloseFunTest
> cast
> functions
> outparams
> procedure
> triggerRefClause
> wisconsin
> iepnegativetests
> ieptests
> importExportThruIJ
> importExport
> To run the above tests in this environment, test utility classes have to be
> written so that the methods using BigDecimal are redirected depending on the
> VM environment. The initial goal is to submit a patch for the test
> resultset.java. After this, sub-tasks will be opened if changes are needed to
> run the other tests.
--
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