From d5973d11899bb37967a13afeca55098f7da576d4 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Mon, 26 Oct 2015 16:59:46 +0100 Subject: [PATCH] bugfix: harmonize postgres session handling --- lib/resources/postgres_session.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources/postgres_session.rb b/lib/resources/postgres_session.rb index 8a350ea2f..324848939 100644 --- a/lib/resources/postgres_session.rb +++ b/lib/resources/postgres_session.rb @@ -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