Skip to content

Commit

Permalink
fix: plugins_configurations dao :select_distinct()
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Apr 21, 2015
1 parent 7bd5762 commit 055f9fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion kong/dao/cassandra/plugins_configurations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function PluginsConfigurations:find_distinct()

-- Execute query
local distinct_names = {}
for _, rows, page, err in session:execute(self._queries.select.query, nil, {auto_paging=true}) do
for _, rows, page, err in session:execute(string.format(self._queries.select.query, ""), nil, {auto_paging=true}) do
if err then
return nil, err
end
Expand Down
1 change: 0 additions & 1 deletion spec/unit/dao/cassandra_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ describe("Cassandra DAO", function()
end)

it("should find distinct plugins configurations", function()
pending("Waiting for driver fix #50")
local res, err = dao_factory.plugins_configurations:find_distinct()

assert.falsy(err)
Expand Down

0 comments on commit 055f9fb

Please sign in to comment.