bugfix: harmonize postgres session handling

This commit is contained in:
Dominik Richter 2015-10-26 16:59:46 +01:00
parent e76b83a24e
commit d5973d1189

View file

@ -31,7 +31,7 @@ class PostgresSession < Inspec.resource(1)
@pass = pass
end
def describe(query, db = [], &block)
def query(query, db = [], &block)
dbs = db.map { |x| "-d #{x}" }.join(' ')
# TODO: simple escape, must be handled by a library
# that does this securely