Navigation Menu

Skip to content

Commit

Permalink
logical_select: reduce needless expression creation
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 10, 2017
1 parent 82a392e commit a071b5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/sharding/logical_select.rb
Expand Up @@ -440,6 +440,8 @@ def close

def apply(table, condition=nil)
column = table.create_column(@label, @flags, @type)
return if table.empty?

expression = Expression.create(table)
begin
expression.parse(@value)
Expand Down

0 comments on commit a071b5c

Please sign in to comment.