initial support for is null and is not null

will nedd some work, but just for now
This commit is contained in:
2021-09-08 18:34:11 +02:00
parent 0db976f471
commit 61f3af90af
6 changed files with 30 additions and 5 deletions

View File

@@ -472,6 +472,12 @@ namespace usql {
return RelationalOperatorType::lesser;
case TokenType::lesser_equal:
return RelationalOperatorType::lesser_equal;
case TokenType::is:
if (m_lexer.tokenType() == TokenType::keyword_not) {
m_lexer.skipToken(TokenType::keyword_not);
return RelationalOperatorType::is_not;
}
return RelationalOperatorType::is;
default:
throw Exception("Unknown relational operator " + op.token_string);
}