better support for booleans
This commit is contained in:
10
lexer.cpp
10
lexer.cpp
@@ -203,6 +203,10 @@ namespace usql {
|
||||
return TokenType::keyword_date;
|
||||
if (token == "boolean")
|
||||
return TokenType::keyword_bool;
|
||||
if (token == "true")
|
||||
return TokenType::keyword_true;
|
||||
if (token == "false")
|
||||
return TokenType::keyword_false;
|
||||
if (token == "distinct")
|
||||
return TokenType::keyword_distinct;
|
||||
if (token == "show")
|
||||
@@ -395,6 +399,12 @@ namespace usql {
|
||||
case TokenType::keyword_bool:
|
||||
txt = "boolean";
|
||||
break;
|
||||
case TokenType::keyword_true:
|
||||
txt = "true";
|
||||
break;
|
||||
case TokenType::keyword_false:
|
||||
txt = "false";
|
||||
break;
|
||||
case TokenType::keyword_distinct:
|
||||
txt = "distinct";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user