mirror of https://github.com/apache/openjpa.git
OPENJPA-517
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@629168 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
383dd9e25a
commit
ea946b9654
|
@ -174,6 +174,7 @@ public class DBDictionary
|
|||
public String reservedWords = null;
|
||||
public String systemSchemas = null;
|
||||
public String systemTables = null;
|
||||
public String selectWords = null;
|
||||
public String fixedSizeTypeNames = null;
|
||||
public String schemaCase = SCHEMA_CASE_UPPER;
|
||||
|
||||
|
@ -3880,6 +3881,10 @@ public class DBDictionary
|
|||
// if user has unset sequence sql, null it out so we know sequences
|
||||
// aren't supported
|
||||
nextSequenceQuery = StringUtils.trimToNull(nextSequenceQuery);
|
||||
|
||||
if (selectWords != null)
|
||||
selectWordSet.addAll(Arrays.asList(Strings.split(selectWords
|
||||
.toUpperCase(), ",", 0)));
|
||||
}
|
||||
|
||||
//////////////////////////////////////
|
||||
|
|
|
@ -155,6 +155,9 @@ public class OracleDictionary
|
|||
"LONG", "MAXEXTENTS", "MINUS", "MODE", "NOAUDIT", "NOCOMPRESS",
|
||||
"NOWAIT", "OFFLINE", "ONLINE", "PCTFREE", "ROW",
|
||||
}));
|
||||
|
||||
selectWordSet.add("WITH");
|
||||
selectWordSet.add("WITH");
|
||||
}
|
||||
|
||||
public void endConfiguration() {
|
||||
|
|
|
@ -1009,6 +1009,22 @@ true</literal>.
|
|||
this database, beyond the standard SQL92 keywords.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem id="DBDictionary.SelectWords">
|
||||
<para>
|
||||
<indexterm>
|
||||
<primary>
|
||||
SQL
|
||||
</primary>
|
||||
<secondary>
|
||||
SelectWords
|
||||
</secondary>
|
||||
</indexterm>
|
||||
<literal>SelectWords</literal>: A comma-separated list of keywords which may be
|
||||
used to start a SELECT statement for this database. If an application executes
|
||||
a native SQL statement which begins with SelectWords OpenJPA will treat the
|
||||
statement as a SELECT statement rather than an UPDATE statement.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem id="DBDictionary.SystemTables">
|
||||
<para>
|
||||
<indexterm>
|
||||
|
|
Loading…
Reference in New Issue