-
-
Notifications
You must be signed in to change notification settings - Fork 260
Open
Description
Description
I cannot use WhereGroup, every WhereGroup with second argument fire fatal error attached below. If I use only .WhereOr("id = 3") so without query arguments that works, but If I use .WhereOr("id = ?", q) that doesn't work.
Code
var res []model.UserSearch
err := s.Db.
NewSelect().
Table("iam.tbl_user").
ColumnExpr("id as value, name as label").
Where("hidden=false").
Where("deleted=false").
WhereGroup(" AND ", func(q *bun.SelectQuery) *bun.SelectQuery {
return q.Where("name", q).
WhereOr("id = ?", q)
}).
Order("id DESC").
Limit(20).
Scan(ctx, &res)
Versions
- github.com/uptrace/bun v1.2.15
- github.com/uptrace/bun/dialect/pgdialect v1.2.15
Error
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0x1402054e4d0 stack=[0x1402054e000, 0x1404054e000]
fatal error: stack overflow
runtime stack:
runtime.throw({0x102e8c2cf?, 0xffffffffffff8000?})
/usr/local/go/src/runtime/panic.go:1101 +0x38 fp=0x16dc7ad90 sp=0x16dc7ad60 pc=0x102651228
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1107 +0x45c fp=0x16dc7aed0 sp=0x16dc7ad90 pc=0x10263855c
runtime.morestack()
/usr/local/go/src/runtime/asm_arm64.s:342 +0x70 fp=0x16dc7aed0 sp=0x16dc7aed0 pc=0x102656d00
goroutine 32 gp=0x140003a7340 m=8 mp=0x14000580008 [running]:
github.com/uptrace/bun.(*SelectQuery).appendColumns(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66150?}, {0x1400cc00000, 0x29d2473, 0x301e000})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:679 +0x8a4 fp=0x1402054e4d0 sp=0x1402054e4d0 pc=0x102aae654
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66138?}, {0x1400cc00000, 0x29d2473, 0x301e000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:572 +0x53c fp=0x1402054e680 sp=0x1402054e4d0 pc=0x102aacffc
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66138?}, {0x1400cc00000?, 0x0?, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1402054e6f0 sp=0x1402054e680 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x1400fc66138?}, {0x1400cc00000, 0x29d246c, 0x301e000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x1402054e790 sp=0x1402054e6f0 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x1400fc66138?}, {0x1400cc00000?, 0x29d2467?, 0x301e000?}, 0x1402054e8d8, {0x1400035bd70, 0x1, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x1402054e850 sp=0x1402054e790 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x1400fc66138?}, {0x1400cc00000, 0x29d2467, 0x301e000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x1402054e900 sp=0x1402054e850 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66138?}, {0x1400cc00000?, 0x0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x1402054e970 sp=0x1402054e900 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x1400fc66138?}, {0x1400cc00000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x1402054eb18?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x1402054ea60 sp=0x1402054e970 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66138?}, {0x1400cc00000?, 0x29d241f?, 0x301e000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1402054eb20 sp=0x1402054ea60 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66120?}, {0x1400cc00000, 0x29d241f, 0x301e000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1402054ecd0 sp=0x1402054eb20 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66120?}, {0x1400cc00000?, 0x0?, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1402054ed40 sp=0x1402054ecd0 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x1400fc66120?}, {0x1400cc00000, 0x29d23e8, 0x301e000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x1402054ede0 sp=0x1402054ed40 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x1400fc66120?}, {0x1400cc00000?, 0x29d23e3?, 0x301e000?}, 0x1402054ef28, {0x1400035bd70, 0x1, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x1402054eea0 sp=0x1402054ede0 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x1400fc66120?}, {0x1400cc00000, 0x29d23e3, 0x301e000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x1402054ef50 sp=0x1402054eea0 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66120?}, {0x1400cc00000?, 0x0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x1402054efc0 sp=0x1402054ef50 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x1400fc66120?}, {0x1400cc00000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x1402054f168?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x1402054f0b0 sp=0x1402054efc0 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66120?}, {0x1400cc00000?, 0x29d239b?, 0x301e000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1402054f170 sp=0x1402054f0b0 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66108?}, {0x1400cc00000, 0x29d239b, 0x301e000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1402054f320 sp=0x1402054f170 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66108?}, {0x1400cc00000?, 0x0?, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1402054f390 sp=0x1402054f320 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x1400fc66108?}, {0x1400cc00000, 0x29d2364, 0x301e000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x1402054f430 sp=0x1402054f390 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x1400fc66108?}, {0x1400cc00000?, 0x29d235f?, 0x301e000?}, 0x1402054f578, {0x1400035bd70, 0x1, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x1402054f4f0 sp=0x1402054f430 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x1400fc66108?}, {0x1400cc00000, 0x29d235f, 0x301e000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x1402054f5a0 sp=0x1402054f4f0 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66108?}, {0x1400cc00000?, 0x0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x1402054f610 sp=0x1402054f5a0 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x1400fc66108?}, {0x1400cc00000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x1402054f7b8?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x1402054f700 sp=0x1402054f610 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc66108?}, {0x1400cc00000?, 0x29d2317?, 0x301e000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1402054f7c0 sp=0x1402054f700 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660f0?}, {0x1400cc00000, 0x29d2317, 0x301e000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1402054f970 sp=0x1402054f7c0 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660f0?}, {0x1400cc00000?, 0x0?, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1402054f9e0 sp=0x1402054f970 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x1400fc660f0?}, {0x1400cc00000, 0x29d22e0, 0x301e000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x1402054fa80 sp=0x1402054f9e0 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x1400fc660f0?}, {0x1400cc00000?, 0x29d22db?, 0x301e000?}, 0x1402054fbc8, {0x1400035bd70, 0x1, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x1402054fb40 sp=0x1402054fa80 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x1400fc660f0?}, {0x1400cc00000, 0x29d22db, 0x301e000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x1402054fbf0 sp=0x1402054fb40 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660f0?}, {0x1400cc00000?, 0x0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x1402054fc60 sp=0x1402054fbf0 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x1400fc660f0?}, {0x1400cc00000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x1402054fe08?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x1402054fd50 sp=0x1402054fc60 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660f0?}, {0x1400cc00000?, 0x29d2293?, 0x301e000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1402054fe10 sp=0x1402054fd50 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660d8?}, {0x1400cc00000, 0x29d2293, 0x301e000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1402054ffc0 sp=0x1402054fe10 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660d8?}, {0x1400cc00000?, 0x0?, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x14020550030 sp=0x1402054ffc0 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x1400fc660d8?}, {0x1400cc00000, 0x29d225c, 0x301e000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x140205500d0 sp=0x14020550030 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x1400fc660d8?}, {0x1400cc00000?, 0x29d2257?, 0x301e000?}, 0x14020550218, {0x1400035bd70, 0x1, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x14020550190 sp=0x140205500d0 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x1400fc660d8?}, {0x1400cc00000, 0x29d2257, 0x301e000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x14020550240 sp=0x14020550190 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660d8?}, {0x1400cc00000?, 0x0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x140205502b0 sp=0x14020550240 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x1400fc660d8?}, {0x1400cc00000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x14020550458?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x140205503a0 sp=0x140205502b0 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660d8?}, {0x1400cc00000?, 0x29d220f?, 0x301e000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x14020550460 sp=0x140205503a0 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660c0?}, {0x1400cc00000, 0x29d220f, 0x301e000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x14020550610 sp=0x14020550460 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660c0?}, {0x1400cc00000?, 0x0?, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x14020550680 sp=0x14020550610 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x1400fc660c0?}, {0x1400cc00000, 0x29d21d8, 0x301e000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x14020550720 sp=0x14020550680 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x1400fc660c0?}, {0x1400cc00000?, 0x29d21d3?, 0x301e000?}, 0x14020550868, {0x1400035bd70, 0x1, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x140205507e0 sp=0x14020550720 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x1400fc660c0?}, {0x1400cc00000, 0x29d21d3, 0x301e000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x14020550890 sp=0x140205507e0 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660c0?}, {0x1400cc00000?, 0x0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x14020550900 sp=0x14020550890 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x1400fc660c0?}, {0x1400cc00000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x14020550aa8?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x140205509f0 sp=0x14020550900 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660c0?}, {0x1400cc00000?, 0x29d218b?, 0x301e000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x14020550ab0 sp=0x140205509f0 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x1400fc660a8?}, {0x1400cc00000, 0x29d218b, 0x301e000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x14020550c60 sp=0x14020550ab0 pc=0x102aad284
...2657670 frames elided...
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887f8?}, {0x140002dc000?, 0x247?, 0x1000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1404054b800 sp=0x1404054b740 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887e0?}, {0x140002dc000, 0x247, 0x1000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1404054b9b0 sp=0x1404054b800 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887e0?}, {0x140002dc000?, 0x6c?, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1404054ba20 sp=0x1404054b9b0 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x140004887e0?}, {0x140002dc000, 0x210, 0x1000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x1404054bac0 sp=0x1404054ba20 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x140004887e0?}, {0x140002dc000?, 0x20b?, 0x1000?}, 0x1404054bc08, {0x1400035bd70, 0x1, 0x6d?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x1404054bb80 sp=0x1404054bac0 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x140004887e0?}, {0x140002dc000, 0x20b, 0x1000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x1404054bc30 sp=0x1404054bb80 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x140004887e0?}, {0x140002dc000?, 0x0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x1404054bca0 sp=0x1404054bc30 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x140004887e0?}, {0x140002dc000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x140002c7e48?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x1404054bd90 sp=0x1404054bca0 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887e0?}, {0x140002dc000?, 0x1c3?, 0x1000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1404054be50 sp=0x1404054bd90 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887c8?}, {0x140002dc000, 0x1c3, 0x1000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1404054c000 sp=0x1404054be50 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887c8?}, {0x140002dc000?, 0x102a79fd8?, 0x103253978?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1404054c070 sp=0x1404054c000 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x140004887c8?}, {0x140002dc000, 0x18c, 0x1000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x1404054c110 sp=0x1404054c070 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x140004887c8?}, {0x140002dc000?, 0x187?, 0x1000?}, 0x1404054c258, {0x1400035bd70, 0x1, 0x1025f6acc?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x1404054c1d0 sp=0x1404054c110 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x140004887c8?}, {0x140002dc000, 0x187, 0x1000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x1404054c280 sp=0x1404054c1d0 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x140004887c8?}, {0x140002dc000?, 0x1025e8758?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x1404054c2f0 sp=0x1404054c280 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x140004887c8?}, {0x140002dc000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x140002c8498?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x1404054c3e0 sp=0x1404054c2f0 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887c8?}, {0x140002dc000?, 0x13f?, 0x1000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1404054c4a0 sp=0x1404054c3e0 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887b0?}, {0x140002dc000, 0x13f, 0x1000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1404054c650 sp=0x1404054c4a0 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887b0?}, {0x140002dc000?, 0x140002c8ad8?, 0x140002c8718?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1404054c6c0 sp=0x1404054c650 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x140004887b0?}, {0x140002dc000, 0x108, 0x1000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x1404054c760 sp=0x1404054c6c0 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x140004887b0?}, {0x140002dc000?, 0x103?, 0x1000?}, 0x1404054c8a8, {0x1400035bd70, 0x1, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x1404054c820 sp=0x1404054c760 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x140004887b0?}, {0x140002dc000, 0x103, 0x1000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x1404054c8d0 sp=0x1404054c820 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x140004887b0?}, {0x140002dc000?, 0x0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x1404054c940 sp=0x1404054c8d0 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x140004887b0?}, {0x140002dc000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x140002c8ae8?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x1404054ca30 sp=0x1404054c940 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x140004887b0?}, {0x140002dc000?, 0xbb?, 0x1000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1404054caf0 sp=0x1404054ca30 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x14000488798?}, {0x140002dc000, 0xbb, 0x1000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1404054cca0 sp=0x1404054caf0 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x14000488798?}, {0x140002dc000?, 0x0?, 0x0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1404054cd10 sp=0x1404054cca0 pc=0x102aaca88
github.com/uptrace/bun/schema.Formatter.appendArg({{0x10324c798?, 0x140003a2048?}, 0x14000488798?}, {0x140002dc000, 0x84, 0x1000}, {0x10322a5e0?, 0x140002885a0?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:168 +0x10c fp=0x1404054cdb0 sp=0x1404054cd10 pc=0x102a6700c
github.com/uptrace/bun/schema.Formatter.append({{0x10324c798?, 0x140003a2048?}, 0x14000488798?}, {0x140002dc000?, 0x7f?, 0x1000?}, 0x1404054cef8, {0x1400035bd70, 0x1, 0x103148360?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:159 +0x2d0 fp=0x1404054ce70 sp=0x1404054cdb0 pc=0x102a66b60
github.com/uptrace/bun/schema.Formatter.AppendQuery({{0x10324c798?, 0x140003a2048?}, 0x14000488798?}, {0x140002dc000, 0x7f, 0x1000}, {0x102e7c391, 0x6}, {0x1400035bd70, 0x1, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/formatter.go:90 +0x1a0 fp=0x1404054cf20 sp=0x1404054ce70 pc=0x102a66830
github.com/uptrace/bun/schema.QueryWithArgs.AppendQuery({{0x102e7c391, 0x6}, {0x1400035bd70, 0x1, 0x1}}, {{0x10324c798?, 0x140003a2048?}, 0x14000488798?}, {0x140002dc000?, 0x103a03eb0?, ...})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/schema/sqlfmt.go:85 +0x78 fp=0x1404054cf90 sp=0x1404054cf20 pc=0x102a6b248
github.com/uptrace/bun.appendWhere({{0x10324c798?, 0x140003a2048?}, 0x14000488798?}, {0x140002dc000?, 0xc?, 0x0?}, {0x14000102e00?, 0x8, 0x140002c9138?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:876 +0x1b0 fp=0x1404054d080 sp=0x1404054cf90 pc=0x102a97000
github.com/uptrace/bun.(*whereBaseQuery).appendWhere(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x14000488798?}, {0x140002dc000?, 0x37?, 0x1000?}, 0x1)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_base.go:813 +0x13c fp=0x1404054d140 sp=0x1404054d080 pc=0x102a9687c
github.com/uptrace/bun.(*SelectQuery).appendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x0?}, {0x140002dc000, 0x37, 0x1000}, 0x0)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:605 +0x7c4 fp=0x1404054d2f0 sp=0x1404054d140 pc=0x102aad284
github.com/uptrace/bun.(*SelectQuery).AppendQuery(0x140002885a0, {{0x10324c798?, 0x140003a2048?}, 0x0?}, {0x140002dc000?, 0x10264ed28?, 0x102fd7d88?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:513 +0x78 fp=0x1404054d360 sp=0x1404054d2f0 pc=0x102aaca88
github.com/uptrace/bun.(*SelectQuery).scanResult(0x140002885a0, {0x1032449f0, 0x140002ac480}, {0x1400035bda0?, 0x1, 0x1400013c858?})
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:884 +0x1bc fp=0x1404054d450 sp=0x1404054d360 pc=0x102aaf52c
github.com/uptrace/bun.(*SelectQuery).Scan(...)
/Users/tomas/go/pkg/mod/github.com/uptrace/[email protected]/query_select.go:849
sipsys-api/internal/iam/service.(*userService).SearchUserService(0x140000743e0, {0x1032449f0, 0x140002ac480}, {0x140001c6038?, 0x140001c6038?})
/Users/tomas/Work/sipron/github/sipsys_api/internal/iam/service/user.go:111 +0x3a4 fp=0x1404054d550 sp=0x1404054d450 pc=0x102e13c64
sipsys-api/internal/iam/handler.(*userHandler).SearchUserHandler(0x140003a21e0, {0x103254dc0, 0x140004886f0})
/Users/tomas/Work/sipron/github/sipsys_api/internal/iam/handler/user.go:109 +0xb8 fp=0x1404054d5a0 sp=0x1404054d550 pc=0x102e154a8
sipsys-api/internal/iam/handler.(*userHandler).SearchUserHandler-fm({0x103254dc0?, 0x140004886f0?})
<autogenerated>:1 +0x3c fp=0x1404054d5d0 sp=0x1404054d5a0 pc=0x102e1598c
main.main.func3.AuthMiddleware.1({0x103254dc0, 0x140004886f0})
/Users/tomas/Work/sipron/github/sipsys_api/shared/middleware/auth.go:47 +0x190 fp=0x1404054d660 sp=0x1404054d5d0 pc=0x102e22d50
github.com/labstack/echo/v4.(*Echo).add.func1({0x103254dc0, 0x140004886f0})
/Users/tomas/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:581 +0x48 fp=0x1404054d690 sp=0x1404054d660 pc=0x102d0c8c8
github.com/ziflex/lecho/v3.Middleware.func1.1({0x103254bf0, 0x140001c6000})
/Users/tomas/go/pkg/mod/github.com/ziflex/lecho/[email protected]/middleware.go:132 +0x670 fp=0x1404054d9e0 sp=0x1404054d690 pc=0x102e1c860
main.main.RequestID.RequestIDWithConfig.func6.1({0x103254bf0, 0x140001c6000})
/Users/tomas/go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/request_id.go:68 +0x10c fp=0x1404054da50 sp=0x1404054d9e0 pc=0x102e22f7c
main.main.Recover.RecoverWithConfig.func5.1({0x103254bf0, 0x140001c6000})
/Users/tomas/go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/recover.go:130 +0xe4 fp=0x1404054daf0 sp=0x1404054da50 pc=0x102e23164
github.com/labstack/echo/v4.(*Echo).ServeHTTP(0x140000b4248, {0x103242b00, 0x14000292540}, 0x1400019d180)
/Users/tomas/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:668 +0x300 fp=0x1404054db50 sp=0x1404054daf0 pc=0x102d0d2b0
net/http.serverHandler.ServeHTTP({0x140002ac360?}, {0x103242b00?, 0x14000292540?}, 0x6?)
/usr/local/go/src/net/http/server.go:3301 +0xbc fp=0x1404054db80 sp=0x1404054db50 pc=0x1028c3d1c
net/http.(*conn).serve(0x140000a8fc0, {0x1032449f0, 0x140000a5f50})
/usr/local/go/src/net/http/server.go:2102 +0x52c fp=0x1404054dfa0 sp=0x1404054db80 pc=0x1028a4edc
net/http.(*Server).Serve.gowrap3()
/usr/local/go/src/net/http/server.go:3454 +0x30 fp=0x1404054dfd0 sp=0x1404054dfa0 pc=0x1028a9fe0
runtime.goexit({})
/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x1404054dfd0 sp=0x1404054dfd0 pc=0x102658f74
created by net/http.(*Server).Serve in goroutine 1
/usr/local/go/src/net/http/server.go:3454 +0x3d8
goroutine 1 gp=0x140000021c0 m=nil [IO wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/go/src/runtime/proc.go:435 +0xc8 fp=0x14000171720 sp=0x14000171700 pc=0x102651348
runtime.netpollblock(0x140000477b8?, 0x26ce520?, 0x1?)
/usr/local/go/src/runtime/netpoll.go:575 +0x158 fp=0x14000171760 sp=0x14000171720 pc=0x102617f38
internal/poll.runtime_pollWait(0x103e1ada0, 0x72)
/usr/local/go/src/runtime/netpoll.go:351 +0xa0 fp=0x14000171790 sp=0x14000171760 pc=0x102650500
internal/poll.(*pollDesc).wait(0x140000be580?, 0x1026d0778?, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x140001717c0 sp=0x14000171790 pc=0x1026c9d38
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0x140000be580)
/usr/local/go/src/internal/poll/fd_unix.go:620 +0x24c fp=0x14000171870 sp=0x140001717c0 pc=0x1026ce60c
net.(*netFD).accept(0x140000be580)
/usr/local/go/src/net/fd_unix.go:172 +0x28 fp=0x14000171930 sp=0x14000171870 pc=0x10277e298
net.(*TCPListener).accept(0x140002324c0)
/usr/local/go/src/net/tcpsock_posix.go:159 +0x24 fp=0x14000171980 sp=0x14000171930 pc=0x102795364
net.(*TCPListener).AcceptTCP(0x140002324c0)
/usr/local/go/src/net/tcpsock.go:367 +0x2c fp=0x140001719c0 sp=0x14000171980 pc=0x10279451c
github.com/labstack/echo/v4.tcpKeepAliveListener.Accept({0x14000047a18?})
/Users/tomas/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:988 +0x1c fp=0x14000171a00 sp=0x140001719c0 pc=0x102d0f14c
github.com/labstack/echo/v4.(*tcpKeepAliveListener).Accept(0x140000021c0?)
<autogenerated>:1 +0x2c fp=0x14000171a20 sp=0x14000171a00 pc=0x102d149dc
net/http.(*onceCloseListener).Accept(0x140000a8fc0?)
<autogenerated>:1 +0x30 fp=0x14000171a40 sp=0x14000171a20 pc=0x1028cff50
net/http.(*Server).Serve(0x14000256700, {0x103242cb0, 0x1400011c398})
/usr/local/go/src/net/http/server.go:3424 +0x290 fp=0x14000171b70 sp=0x14000171a40 pc=0x1028a9c50
github.com/labstack/echo/v4.(*Echo).Start(0x140000b4248, {0x102e7674a, 0x5})
/Users/tomas/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:685 +0xc8 fp=0x14000171bb0 sp=0x14000171b70 pc=0x102d0d528
main.main()
/Users/tomas/Work/sipron/github/sipsys_api/cmd/main.go:77 +0x8c8 fp=0x14000171f40 sp=0x14000171bb0 pc=0x102e228f8
runtime.main()
/usr/local/go/src/runtime/proc.go:283 +0x284 fp=0x14000171fd0 sp=0x14000171f40 pc=0x10261e854
runtime.goexit({})
/usr/local/go/src/runtime/asm_arm64.s:1223 +0x4 fp=0x14000171fd0 sp=0x14000171fd0 pc=0x102658f74
Metadata
Metadata
Assignees
Labels
No labels