OPENJPA-395. Use getShort instead of getInt for the KEY_SEQ, DEFFERABILITY, and DELETE_RULE metadata fields.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@582838 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2007-10-08 14:41:14 +00:00
parent 704fc1b513
commit 4fb0c28dc2
1 changed files with 3 additions and 3 deletions

View File

@ -3644,11 +3644,11 @@ public class DBDictionary
fk.setPrimaryKeySchemaName(fkMeta.getString("PKTABLE_SCHEM"));
fk.setPrimaryKeyTableName(fkMeta.getString("PKTABLE_NAME"));
fk.setPrimaryKeyColumnName(fkMeta.getString("PKCOLUMN_NAME"));
fk.setKeySequence(fkMeta.getInt("KEY_SEQ"));
fk.setDeferred(fkMeta.getInt("DEFERRABILITY")
fk.setKeySequence(fkMeta.getShort("KEY_SEQ"));
fk.setDeferred(fkMeta.getShort("DEFERRABILITY")
== DatabaseMetaData.importedKeyInitiallyDeferred);
int del = fkMeta.getInt("DELETE_RULE");
int del = fkMeta.getShort("DELETE_RULE");
switch (del) {
case DatabaseMetaData.importedKeySetNull:
fk.setDeleteAction(ForeignKey.ACTION_NULL);