Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Sep 11, 2024
1 parent 1c48648 commit 9a6159a
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/main/java/org/usf/jquery/core/DBColumn.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<DBView> views) {
views.add(view);
}
}.as(null);
}

static DBColumn constant(Object value) {
Expand Down

0 comments on commit 9a6159a

Please sign in to comment.