Skip to content

Commit d658273

Browse files
authored
Land rapid7#18874 Fix undefined mssql_query method call on mssql client
2 parents a183289 + a07d1c8 commit d658273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/post/mssql/ui/console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def initialize(session, opts={})
5858

5959
# @return [String]
6060
def database_name
61-
session.client.mssql_query('SELECT DB_NAME();')[:rows][0][0]
61+
session.client.query('SELECT DB_NAME();')[:rows][0][0]
6262
end
6363

6464
# @param [Object] val

0 commit comments

Comments
 (0)