Class: FilterLexer::NEQOperator

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

Overview

An relational negative equality operator

Instance Method Summary collapse

Methods inherited from RelationalOperator

#query_string, #query_variables

Instance Method Details

#sqlObject



86
87
88
89
90
91
92
93
# File 'lib/filter_lexer/formatters/sql.rb', line 86

def sql
	case parent.data
		when BooleanLiteral, NullLiteral
			return 'IS NOT'
		else
			return '<>'
	end
end