Class: FilterLexer::EQOperator

Inherits:
RelationalOperator show all
Defined in:
lib/filter_lexer/nodes/relational_operators.rb,
lib/filter_lexer/formatters/sql.rb

Overview

An relational equality operator

Instance Method Summary collapse

Methods inherited from RelationalOperator

#query_string, #query_variables

Instance Method Details

#sqlObject



75
76
77
78
79
80
81
82
# File 'lib/filter_lexer/formatters/sql.rb', line 75

def sql
	case parent.data
		when BooleanLiteral, NullLiteral
			return 'IS'
		else
			return '='
	end
end