Skip to content

Commit

Permalink
0000708: Add ability to exclude BFILE columns from triggers for Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanes committed Dec 5, 2012
1 parent cc16ac1 commit 1b6b045
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Expand Up @@ -299,7 +299,7 @@ public String replaceTemplateVariables(DataEventType dml, Trigger trigger,
trigger.isSyncOnIncomingBatch() ? Constants.ALWAYS_TRUE_CONDITION
: syncTriggersExpression, ddl);
ddl = FormatUtils.replace("origTableAlias", ORIG_TABLE_ALIAS, ddl);

;
Column[] orderedColumns = trigger.orderColumnsForTable(table);
ColumnString columnString = buildColumnString(ORIG_TABLE_ALIAS, newTriggerValue,
newColumnPrefix, orderedColumns, dml, false, channel, trigger);
Expand Down Expand Up @@ -546,12 +546,7 @@ protected ColumnString buildColumnString(String origTableAlias, String tableAlia
break;
case Types.CHAR:
case Types.VARCHAR:
if (column.getJdbcTypeName()!=null && (column.getJdbcTypeName().toUpperCase()
.contains(TypeMap.BFILE))) {
templateToUse = emptyColumnTemplate;
} else {
templateToUse = stringColumnTemplate;
}
templateToUse = stringColumnTemplate;
break;
case ColumnTypes.SQLXML:
templateToUse = xmlColumnTemplate;
Expand Down
Expand Up @@ -98,7 +98,6 @@ public abstract class TypeMap

public static final String SQLXML = "SQLXML";
public static final String GEOMETRY = "GEOMETRY";
public static final String BFILE = "BFILE";
public static final String UUID = "UUID";
public static final String VARBIT = "VARBIT";
public static final String INTERVAL = "INTERVAL";
Expand Down

0 comments on commit 1b6b045

Please sign in to comment.