OPENJPA-1461: Incorrect Oracle CREATE TABLE DDL for XML column

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Catalina Wei 2010-01-15 05:12:44 +00:00
parent 61cacd5df6
commit dad4ad1952
3 changed files with 4 additions and 3 deletions

View File

@ -897,7 +897,7 @@ public class OracleDictionary
@Override
public int getJDBCType(int metaTypeCode, boolean lob, int precis,
int scale, boolean xml) {
return getJDBCType(metaTypeCode, lob && !xml, precis, scale);
return getJDBCType(metaTypeCode, lob || xml, precis, scale);
}

View File

@ -64,7 +64,8 @@ public class TestUpdateWithSubSelect extends SQLListenerTestCase {
assertEquals(1,sql.size());
String sqlString = sql.get(0).toUpperCase().trim();
assertTrue(sqlString.startsWith("UPDATE"));
assertTrue(sqlString.indexOf("JOIN") != -1);
// assert JOIN condition
assertTrue(sqlString.indexOf("T0.ADDRESS_ID = T1.ID") != -1);
}
}

View File

@ -63,7 +63,7 @@ public class TestXMLCustomerOrder
public void setUp() {
setUp(Customer.class, Customer.CustomerKey.class, Order.class,
EAddress.class, CLEAR_TABLES);
EAddress.class, DROP_TABLES); // test create table DDL for XML column
// skip test if dictionary has no support for XML column type
setTestsDisabled(!dictionarySupportsXMLColumn());