Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1233 from ZupIT/hotfix/fix-count-query-workspaces
Browse files Browse the repository at this point in the history
fixing count query
  • Loading branch information
barbararochazup authored May 14, 2021
2 parents 3792415 + d008ab5 commit 938ae6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class JdbcWorkspaceRepository(

private fun executeCountQuery(name: String?): Int? {
val statement = StringBuilder(BASE_COUNT_QUERY_STATEMENT)
name?.let { statement.appendln("AND w.name ILIKE ?") }
name?.let { statement.appendln("AND workspaces.name ILIKE ?") }
return this.jdbcTemplate.queryForObject(
statement.toString(),
createParametersArray(name)
Expand Down

0 comments on commit 938ae6f

Please sign in to comment.