mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
LibSQL: Remove infallible type conversions from SQL::Value
Force the callers to either know that the type is convertible, or to handle the conversion failure.
This commit is contained in:
committed by
Ali Mohammad Pur
parent
af3980384b
commit
7d41b46a7d
@@ -92,8 +92,8 @@ ResultOr<ResultSet> Select::execute(ExecutionContext& context) const
|
||||
context.current_row = &row;
|
||||
|
||||
if (where_clause()) {
|
||||
auto where_result = TRY(where_clause()->evaluate(context));
|
||||
if (!where_result)
|
||||
auto where_result = TRY(where_clause()->evaluate(context)).to_bool();
|
||||
if (!where_result.has_value() || !where_result.value())
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user