Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generated column in unique key error #1461

Merged
merged 10 commits into from
Dec 18, 2024
Prev Previous commit
Next Next commit
fix FilterBy func
  • Loading branch information
meiji163 committed Dec 18, 2024
commit 6c2a036224ec6a09f396b64d6fe8a4cb7fd8aadf
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
meiji163 marked this conversation as resolved.
Show resolved Hide resolved
}

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 ;;
Loading