lesser logging. order-bug fixed

This commit is contained in:
Denis Knauf 2011-10-27 15:21:56 +02:00
parent 8eeb66d99f
commit 5c68b74ee4
3 changed files with 17 additions and 17 deletions

View file

@ -180,35 +180,35 @@ class SmqlToAR
end
def parse
benchmark 'SMQL parse' do
#benchmark 'SMQL parse' do
@conditions = ConditionTypes.try_parse @model, @query
end
#end
#p conditions: @conditions
self
end
def build
benchmark 'SMQL build query' do
#benchmark 'SMQL build query' do
@builder = QueryBuilder.new @model
table = @builder.base_table
@conditions.each {|condition| condition.build builder, table }
end
#end
#p builder: @builder
self
end
def ar
@ar ||= benchmark 'SMQL ar' do
@ar ||= #benchmark 'SMQL ar' do
@builder.to_ar
end
#end
end
def to_ar
benchmark 'SMQL' do
#benchmark 'SMQL' do
parse
build
ar
end
#end
end
def self.to_ar *params