Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion duckdb
Submodule duckdb updated 2451 files
12 changes: 6 additions & 6 deletions src/block_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,27 +301,27 @@ void BlockManager::LoadFreeList() {
void BlockManager::ValidateBlockId(block_id_t block_id) const {
if (block_id == INVALID_BLOCK_ID) {
throw duckdb::InvalidInputException(
"Block ID cannot be INVALID_BLOCK_ID",
{
{"block_id", std::to_string(block_id)}
},
"Block ID cannot be INVALID_BLOCK_ID"
}
);
}
if (block_id < 0) {
throw duckdb::InvalidInputException(
"Block ID cannot be negative",
{
{"block_id", std::to_string(block_id)}
},
"Block ID cannot be negative"
}
);
}
if (block_id >= max_block) {
throw duckdb::InvalidInputException(
"Block ID cannot exceed max_block",
{
{"block_id", std::to_string(block_id)},
{"max_block", std::to_string(max_block)}
},
"Block ID cannot exceed max_block"
}
);
}
}
Expand Down
Loading