You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query:=fmt.Sprintf("SELECT %s FROM %s.token_balances FINAL WHERE chain_id = ? AND token_type = ? AND owner = ? AND balance %s 0", columns, c.cfg.Database, balanceCondition)
1398
+
if!isBalanceAggregated {
1399
+
query+=fmt.Sprintf(" AND balance %s 0", balanceCondition)
1400
+
}
1383
1401
1384
-
ifqf.TokenAddress!="" {
1385
-
query+=fmt.Sprintf(" AND address = '%s'", qf.TokenAddress)
1402
+
iflen(qf.GroupBy) >0 {
1403
+
query+=fmt.Sprintf(" GROUP BY %s", strings.Join(qf.GroupBy, ", "))
1404
+
1405
+
ifisBalanceAggregated {
1406
+
query+=fmt.Sprintf(" HAVING balance %s 0", balanceCondition)
0 commit comments