Permalink
Browse files

Correct fix for older PG support, thanks to Patrick Fitzgerald

  • Loading branch information...
1 parent 75430a0 commit f75edc0ca1e78eefbd1ff2b4e66b6f20d266dec3 HD Moore committed Jul 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/msf/core/db_manager.rb
View
3 lib/msf/core/db_manager.rb
@@ -590,7 +590,8 @@ def search_modules(search_string, inclusive=false)
"LEFT OUTER JOIN module_platforms ON module_details.id = module_platforms.module_detail_id "
).
where(where_q.join(inclusive ? " OR " : " AND "), *(where_v.flatten)).
- group("module_details.id, module_details.*")
+ # Compatibility for Postgres installations prior to 9.1 - doesn't have support for wildcard group by clauses
+ group("module_details.id, module_details.mtime, module_details.file, module_details.mtype, module_details.refname, module_details.fullname, module_details.name, module_details.rank, module_details.description, module_details.license, module_details.privileged, module_details.disclosure_date, module_details.default_target, module_details.default_action, module_details.stance, module_details.ready")
res = qry.all

0 comments on commit f75edc0

Please sign in to comment.