Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Fix the conversion between SqlTypeId and string。 (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
linmagit authored Jul 28, 2021
1 parent 0847d39 commit c7e6949
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/execution/sql/sql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,20 +279,20 @@ std::string SqlTypeIdToString(SqlTypeId type) {
case SqlTypeId::Timestamp:
return "Timestamp";
case SqlTypeId::Varchar:
return "VarChar";
return "Varchar";
case SqlTypeId::Varbinary:
return "VarBinary";
return "Varbinary";
default:
// All cases handled
UNREACHABLE("Impossible type");
}
}

SqlTypeId SqlTypeIdFromString(const std::string &type_string) {
if (type_string == "INVALID") {
if (type_string == "Invalid") {
return SqlTypeId::Invalid;
}
if (type_string == "BOOLEAN") {
if (type_string == "Boolean") {
return SqlTypeId::Boolean;
}
if (type_string == "TinyInt") {
Expand Down

0 comments on commit c7e6949

Please sign in to comment.