Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BREAKING] Implicit cast rules for integer literals, and parameterized ANY for binding #10194

Merged
merged 14 commits into from
Jan 10, 2024
Prev Previous commit
Next Next commit
CI fixes
  • Loading branch information
Mytherin committed Jan 10, 2024
commit 01cd568596bca9dedc526f301753e176de6f184a
4 changes: 2 additions & 2 deletions src/common/types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@ LogicalType LogicalType::ARRAY(const LogicalType &child) {
//===--------------------------------------------------------------------===//
// Any Type
//===--------------------------------------------------------------------===//
LogicalType LogicalType::ANY_PARAMS(LogicalType target, idx_t cast_score) {
LogicalType LogicalType::ANY_PARAMS(LogicalType target, idx_t cast_score) { // NOLINT
auto type_info = make_shared<AnyTypeInfo>(std::move(target), cast_score);
return LogicalType(LogicalTypeId::ANY, std::move(type_info));
}
Expand Down Expand Up @@ -1501,7 +1501,7 @@ bool IntegerLiteral::FitsInType(const LogicalType &type, const LogicalType &targ
return copy.DefaultTryCastAs(target);
}

LogicalType LogicalType::INTEGER_LITERAL(const Value &constant) {
LogicalType LogicalType::INTEGER_LITERAL(const Value &constant) { // NOLINT
if (!constant.type().IsIntegral()) {
throw InternalException("INTEGER_LITERAL can only be made from literals of integer types");
}
Expand Down
Binary file modified test/sql/storage_version/storage_version.db
Binary file not shown.