mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 16:02:25 -05:00
update dependencies (#296)
This commit is contained in:
parent
2aaec82732
commit
829a934d23
124 changed files with 2453 additions and 1588 deletions
7
vendor/github.com/uptrace/bun/query_select.go
generated
vendored
7
vendor/github.com/uptrace/bun/query_select.go
generated
vendored
|
|
@ -10,7 +10,6 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/uptrace/bun/dialect"
|
||||
"github.com/uptrace/bun/internal"
|
||||
"github.com/uptrace/bun/schema"
|
||||
)
|
||||
|
|
@ -116,8 +115,8 @@ func (q *SelectQuery) ExcludeColumn(columns ...string) *SelectQuery {
|
|||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
func (q *SelectQuery) WherePK() *SelectQuery {
|
||||
q.flags = q.flags.Set(wherePKFlag)
|
||||
func (q *SelectQuery) WherePK(cols ...string) *SelectQuery {
|
||||
q.addWhereCols(cols)
|
||||
return q
|
||||
}
|
||||
|
||||
|
|
@ -542,7 +541,7 @@ func (q *SelectQuery) appendColumns(fmter schema.Formatter, b []byte) (_ []byte,
|
|||
if len(q.table.Fields) > 10 && fmter.IsNop() {
|
||||
b = append(b, q.table.SQLAlias...)
|
||||
b = append(b, '.')
|
||||
b = dialect.AppendString(b, fmt.Sprintf("%d columns", len(q.table.Fields)))
|
||||
b = fmter.Dialect().AppendString(b, fmt.Sprintf("%d columns", len(q.table.Fields)))
|
||||
} else {
|
||||
b = appendColumns(b, q.table.SQLAlias, q.table.Fields)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue