@Override public String getTableName() { Table table = column.getTable(); return table == null ? null : table.getName(); }
@Override public String getSchemaName() { Table table = column.getTable(); return table == null ? null : table.getSchema().getName(); }
case Comparison.IN_QUERY: if (indexConditions.size() > 1) { if (!Table.TABLE.equals(column.getTable().getTableType())) {
public void setColumn(Column column) { table = column.getTable(); sequence = column.getSequence(); if (sequence == null) { throw DbException.get(ErrorCode.SEQUENCE_NOT_FOUND_1, column.getSQL()); } }
protected void doPrepare() { searchColumns = tableFilter.getTable().getColumns(); Select select = tableFilter.getSelect(); if (select != null && tableFilter.isFromTableMate()) { HashSet<Column> columns = New.linkedHashSet(); select.isEverything(ExpressionVisitor.getColumnsVisitor(columns)); ArrayList<Column> selected = New.arrayList(10); for (Column column : columns) { if (table == column.getTable()) { selected.add(column); } } //product_category columns is empty null where visitor this sql //SELECT count(*) FROM product_category a LEFT JOIN (SELECT product_category_id, count(*) //c FROM product GROUP BY product_category_id) b ON a.product_category_id = b.product_category_id; if(!selected.isEmpty()) { searchColumns = selected.toArray(new Column[selected.size()]); } } }
for (IndexCondition mask : masks) { Column compareColumn = mask.getCompareColumn(); Table table = compareColumn.getTable(); if (!(table instanceof TableMate)) { continue;
case ExpressionVisitor.GET_DEPENDENCIES: if (column != null) { visitor.addDependency(column.getTable());