LibSQL: Relax assignment rules for Null Values

It should be possible to assign a Value of any type to a Value which
currently is Null.
This commit is contained in:
Jan de Visser 2021-11-02 16:45:22 -04:00 committed by Andreas Kling
parent 1c50e9aadc
commit 87f4c1677b
Notes: sideshowbarker 2024-07-18 02:13:10 +09:00

View File

@ -261,6 +261,8 @@ Value& Value::operator=(Value const& other)
if (this != &other) {
if (other.is_null()) {
assign(null());
} else if (is_null()) {
assign(other);
} else {
VERIFY(can_cast(other));
assign(other);