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

Commit c7e6949

Browse files
authored
Fix the conversion between SqlTypeId and string。 (#1635)
1 parent 0847d39 commit c7e6949

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/execution/sql/sql.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,20 +279,20 @@ std::string SqlTypeIdToString(SqlTypeId type) {
279279
case SqlTypeId::Timestamp:
280280
return "Timestamp";
281281
case SqlTypeId::Varchar:
282-
return "VarChar";
282+
return "Varchar";
283283
case SqlTypeId::Varbinary:
284-
return "VarBinary";
284+
return "Varbinary";
285285
default:
286286
// All cases handled
287287
UNREACHABLE("Impossible type");
288288
}
289289
}
290290

291291
SqlTypeId SqlTypeIdFromString(const std::string &type_string) {
292-
if (type_string == "INVALID") {
292+
if (type_string == "Invalid") {
293293
return SqlTypeId::Invalid;
294294
}
295-
if (type_string == "BOOLEAN") {
295+
if (type_string == "Boolean") {
296296
return SqlTypeId::Boolean;
297297
}
298298
if (type_string == "TinyInt") {

0 commit comments

Comments
 (0)