From 814a46530eb3b472621c3f905f5a0a1eda9876ca Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 14 Jan 2011 15:13:35 +0100 Subject: [PATCH] actually use SqlStatement#desc --- lib/report/sql_statement.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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