Skip to content

Commit

Permalink
Wrap user's visibility query string in parenthesis (#3956)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigozhou authored Feb 15, 2023
1 parent d353dcc commit 0b698c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (c *mysqlQueryConverter) buildSelectStmt(
queryArgs = append(queryArgs, namespaceID.String())

if len(queryString) > 0 {
whereClauses = append(whereClauses, queryString)
whereClauses = append(whereClauses, fmt.Sprintf("(%s)", queryString))
}

if token != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (c *pgQueryConverter) buildSelectStmt(
queryArgs = append(queryArgs, namespaceID.String())

if len(queryString) > 0 {
whereClauses = append(whereClauses, queryString)
whereClauses = append(whereClauses, fmt.Sprintf("(%s)", queryString))
}

if token != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (c *sqliteQueryConverter) buildSelectStmt(
queryArgs = append(queryArgs, namespaceID.String())

if len(queryString) > 0 {
whereClauses = append(whereClauses, queryString)
whereClauses = append(whereClauses, fmt.Sprintf("(%s)", queryString))
}

if token != nil {
Expand Down

0 comments on commit 0b698c1

Please sign in to comment.