Issue Type: Bug Bug
Affects Versions: 11-beta
Assignee: Andrea Aime
Components: jdbc-oracle plugin
Created: 12/Jan/14 9:25 PM
Description:

Online gt-jdbc-oracle build fails with:

OracleFeatureStoreExposePkTest>OnlineTestCase.run:123->JDBCFeatureStoreExposePkTest.testModifyExposedPk:71 expected:<0> but was:<0>

The underlying cause is at org.geotools.jdbc.JDBCFeatureStoreExposePkTest.testModifyExposedPk:71:

assertEquals(0, feature.getAttribute(aname("id")));

which compares the Integer 0 with the BigDecimal 0, which fails as BigDecimal is not instanceof Integer.

This line was introduced by the following commit:

commit 328165b90b7f431ffa7645ee72de84cda3cf6d8a
Author: Andrea Aime <andrea.a...@gmail.com>
Date:   Fri Dec 13 12:30:21 2013 +0100
    [GEOT-4621] Error updating oracle layer through jdbc
Environment: ojdbc14-10.2.0.3.0.jar and Oracle Database 11g Enterprise Edition Release 11.2.0.3.0

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 21:51:28+0800)
Maven home: /home/car605/junk/java/maven3
Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
Java home: /home/car605/junk/java/jdk1.6.0_45.x64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.12-1-amd64", arch: "amd64", family: "unix"
Project: GeoTools
Priority: Major Major
Reporter: Ben Caradoc-Davies
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to