Skip to content

Commit

Permalink
Fix count from subquery that was broken on postgres prior to 16 (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
renom committed Jan 20, 2025
1 parent 2921b87 commit eb2cf6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queries/query_builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func buildSelectQuery(q *Query) (*bytes.Buffer, []interface{}) {
writeModifiers(q, buf, &args)

if hasComplexCount {
buf.WriteByte(')')
buf.WriteString(") AS q")
}
buf.WriteByte(';')
return buf, args
Expand Down

0 comments on commit eb2cf6b

Please sign in to comment.