Skip to content

Commit

Permalink
fix FilterBy func
Browse files Browse the repository at this point in the history
  • Loading branch information
meiji163 committed Dec 18, 2024
1 parent c041017 commit 6c2a036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions go/sql/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ func (this *ColumnList) FilterBy(f func(Column) bool) *ColumnList {
filteredCols = append(filteredCols, column)
}
}
filteredList.columns = filteredCols
return filteredList
}

Expand Down
2 changes: 2 additions & 0 deletions localtests/generated-columns/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ begin
insert into gh_ost_test (id, a, b) values (null, 2,0);
insert into gh_ost_test (id, a, b) values (null, 2,1);
insert into gh_ost_test (id, a, b) values (null, 2,2);
update gh_ost_test set b=b+1 where id < 5;
update gh_ost_test set b=b-1 where id >= 5;
end ;;

0 comments on commit 6c2a036

Please sign in to comment.