better support for booleans

This commit is contained in:
2021-09-07 23:50:34 +02:00
parent 427a3a9f04
commit 0db976f471
8 changed files with 90 additions and 26 deletions

View File

@@ -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;