From 16a4c2c40e4752ba338f35db4cd3521c34755f3b Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 23 Aug 2023 17:04:56 +0100 Subject: [PATCH] Default to `true` if a `WHEN` clause is omitted on `DEFINE EVENT` statements (#2502) --- lib/src/sql/statements/define/event.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/sql/statements/define/event.rs b/lib/src/sql/statements/define/event.rs index c27837b3..4b6ab4bb 100644 --- a/lib/src/sql/statements/define/event.rs +++ b/lib/src/sql/statements/define/event.rs @@ -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