Remove string-only references to location_* generated columns
This commit is contained in:
parent
7a361a330d
commit
12213fb31b
6 changed files with 67 additions and 37 deletions
|
|
@ -10,9 +10,9 @@ import (
|
|||
"github.com/go-jet/jet/v2/postgres"
|
||||
)
|
||||
|
||||
func FeaturePoolsFromFeatures(ctx context.Context, txn db.Ex, site_ids []int64) ([]model.FeaturePool, error) {
|
||||
sql_ids := make([]postgres.Expression, len(site_ids))
|
||||
for i, site_id := range site_ids {
|
||||
func FeaturePoolsFromFeatures(ctx context.Context, txn db.Ex, feature_ids []int64) ([]model.FeaturePool, error) {
|
||||
sql_ids := make([]postgres.Expression, len(feature_ids))
|
||||
for i, site_id := range feature_ids {
|
||||
sql_ids[i] = postgres.Int(site_id)
|
||||
}
|
||||
statement := table.FeaturePool.SELECT(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue