Skip to content

Commit 692bb28

Browse files
committed
Fix incorrectly always returning False for text in exec_if()
1 parent 62d62ee commit 692bb28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/vdbe/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3515,6 +3515,7 @@ fn exec_if(reg: &OwnedValue, jump_if_null: bool, not: bool) -> bool {
35153515
OwnedValue::Integer(0) | OwnedValue::Float(0.0) => not,
35163516
OwnedValue::Integer(_) | OwnedValue::Float(_) => !not,
35173517
OwnedValue::Null => jump_if_null,
3518+
OwnedValue::Text(t) => exec_if(&cast_text_to_real(t.as_str()), jump_if_null, not),
35183519
_ => false,
35193520
}
35203521
}

0 commit comments

Comments
 (0)