diff --git a/lib/report/sql_statement.rb b/lib/report/sql_statement.rb index c2f415b64a..06c8c128a5 100644 --- a/lib/report/sql_statement.rb +++ b/lib/report/sql_statement.rb @@ -30,7 +30,8 @@ class Report::SqlStatement # Generates new SqlStatement. # # @param [String, #to_s] table Table name (or subselect) for from part. - def initialize(table) + def initialize(table, desc = nil) + self.desc = desc || "unkown statement from #{caller.first}" from table end