diff --git a/src/main/java/org/usf/jquery/core/DBColumn.java b/src/main/java/org/usf/jquery/core/DBColumn.java index 28932f3..368bb0c 100644 --- a/src/main/java/org/usf/jquery/core/DBColumn.java +++ b/src/main/java/org/usf/jquery/core/DBColumn.java @@ -437,7 +437,29 @@ static DBColumn column(@NonNull String value) { } static NamedColumn allColumns(@NonNull DBView view) { - return new ViewColumn("*", view, null, null) ; //TODO check this + return new DBColumn() { + + @Override + public String sql(QueryContext ctx) { + ctx.viewAlias(view); + return "*"; //lazy + } + + @Override + public JDBCType getType() { + return null; + } + + @Override + public boolean resolve(QueryBuilder builder) { + return true; //agg + } + + @Override + public void views(Collection views) { + views.add(view); + } + }.as(null); } static DBColumn constant(Object value) {