Default to true if a WHEN clause is omitted on DEFINE EVENT statements (#2502)

This commit is contained in:
Tobie Morgan Hitchcock 2023-08-23 17:04:56 +01:00 committed by GitHub
parent 495f69d618
commit 16a4c2c40e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,7 @@ pub fn event(i: &str) -> IResult<&str, DefineEventStatement> {
let mut res = DefineEventStatement {
name,
what,
when: Value::Bool(true),
..Default::default()
};
// Assign any defined options