Class: Hotdog::Expression::NothingNode

Inherits:
QueryExpressionNode show all
Defined in:
lib/hotdog/expression/semantics.rb

Instance Attribute Summary

Attributes inherited from QueryExpressionNode

#query, #values

Instance Method Summary collapse

Methods inherited from QueryExpressionNode

#dump

Methods inherited from ExpressionNode

#dump, #optimize

Constructor Details

#initialize(options = {}) ⇒ NothingNode



537
538
539
# File 'lib/hotdog/expression/semantics.rb', line 537

def initialize(options={})
  super("SELECT NULL AS host_id WHERE host_id NOT NULL", [], options)
end

Instance Method Details

#evaluate(environment, options = {}) ⇒ Object



541
542
543
544
545
546
547
# File 'lib/hotdog/expression/semantics.rb', line 541

def evaluate(environment, options={})
  if @fallback
    @fallback.evaluate(environment, options)
  else
    []
  end
end