Skip to content

Commit

Permalink
0002474: Support json/jsonb types with indexing for sending schema
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jan 5, 2016
1 parent 0c0f57f commit 3fac71c
Showing 1 changed file with 1 addition and 9 deletions.
Expand Up @@ -2334,18 +2334,10 @@ protected void writeExternalIndexCreateStmt(Table table, IIndex index, StringBui

for (int idx = 0; idx < index.getColumnCount(); idx++) {
IndexColumn idxColumn = index.getColumn(idx);
Column col = table.findColumn(idxColumn.getName());

if (col == null) {
// would get null pointer on next line anyway, so throw
// exception
throw new ModelException("Invalid column '" + idxColumn.getName()
+ "' on index " + index.getName() + " for table " + table.getName());
}
if (idx > 0) {
ddl.append(", ");
}
printIdentifier(getColumnName(col), ddl);
printIdentifier(shortenName(idxColumn.getName(), databaseInfo.getMaxColumnNameLength()), ddl);
}

ddl.append(")");
Expand Down

0 comments on commit 3fac71c

Please sign in to comment.