actually use SqlStatement#desc

pull/6827/head
Konstantin Haase 14 years ago
parent e098fa0810
commit 814a46530e
  1. 3
      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

Loading…
Cancel
Save