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:
Michael Dick 2008-02-19 17:32:05 +00:00
parent 383dd9e25a
commit ea946b9654
3 changed files with 25 additions and 1 deletions

View File

@ -174,6 +174,7 @@ public class DBDictionary
public String reservedWords = null; public String reservedWords = null;
public String systemSchemas = null; public String systemSchemas = null;
public String systemTables = null; public String systemTables = null;
public String selectWords = null;
public String fixedSizeTypeNames = null; public String fixedSizeTypeNames = null;
public String schemaCase = SCHEMA_CASE_UPPER; 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 // if user has unset sequence sql, null it out so we know sequences
// aren't supported // aren't supported
nextSequenceQuery = StringUtils.trimToNull(nextSequenceQuery); nextSequenceQuery = StringUtils.trimToNull(nextSequenceQuery);
if (selectWords != null)
selectWordSet.addAll(Arrays.asList(Strings.split(selectWords
.toUpperCase(), ",", 0)));
} }
////////////////////////////////////// //////////////////////////////////////

View File

@ -155,6 +155,9 @@ public class OracleDictionary
"LONG", "MAXEXTENTS", "MINUS", "MODE", "NOAUDIT", "NOCOMPRESS", "LONG", "MAXEXTENTS", "MINUS", "MODE", "NOAUDIT", "NOCOMPRESS",
"NOWAIT", "OFFLINE", "ONLINE", "PCTFREE", "ROW", "NOWAIT", "OFFLINE", "ONLINE", "PCTFREE", "ROW",
})); }));
selectWordSet.add("WITH");
selectWordSet.add("WITH");
} }
public void endConfiguration() { public void endConfiguration() {

View File

@ -1009,6 +1009,22 @@ true</literal>.
this database, beyond the standard SQL92 keywords. this database, beyond the standard SQL92 keywords.
</para> </para>
</listitem> </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"> <listitem id="DBDictionary.SystemTables">
<para> <para>
<indexterm> <indexterm>