OPENJPA-541 Generate SQL92 JOIN syntax for Oracle 9 or later releases

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@639874 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Catalina Wei 2008-03-21 21:46:55 +00:00
parent 7c3235e4db
commit b8e6cb6011
1 changed files with 4 additions and 2 deletions

View File

@ -191,7 +191,7 @@ public class OracleDictionary
int release = Integer.parseInt(productVersion);
// warn sql92
if (release == 8) {
if (release <= 8) {
if (joinSyntax == SYNTAX_SQL92 && log.isWarnEnabled())
log.warn(_loc.get("oracle-syntax"));
joinSyntax = SYNTAX_DATABASE;
@ -199,10 +199,12 @@ public class OracleDictionary
timestampTypeName = "DATE"; // added oracle 9
supportsXMLColumn = false;
}
else
else {
// select of an xml column requires ".getStringVal()"
// suffix. eg. t0.xmlcol.getStringVal()
getStringVal = ".getStringVal()";
joinSyntax = SYNTAX_SQL92;
}
} else if (metadataClassName.startsWith("com.ddtek.")
|| url.indexOf("jdbc:datadirect:oracle:") != -1
|| "Oracle".equals(driverName)) {