You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using IF NOT EXISTS we still gets an error back
Steps to reproduce
run db
execute DEFINE EVENT email_tndfyr ON TABLE user WHEN $before.email != $after.email THEN (CREATE event SET user = $value.id, time = time::now(), value = $after.email);
execute DEFINE EVENT IF NOT EXISTS email_tndfyr ON TABLE user WHEN $before.email != $after.email THEN (CREATE event SET user = $value.id, time = time::now(), value = $after.email);
Expected behaviour
expects nothing will happen, as event already exists, no errors back to me
Describe the bug
when using IF NOT EXISTS we still gets an error back
Steps to reproduce
DEFINE EVENT email_tndfyr ON TABLE user WHEN $before.email != $after.email THEN (CREATE event SET user = $value.id, time = time::now(), value = $after.email);
DEFINE EVENT IF NOT EXISTS email_tndfyr ON TABLE user WHEN $before.email != $after.email THEN (CREATE event SET user = $value.id, time = time::now(), value = $after.email);
Expected behaviour
expects nothing will happen, as event already exists, no errors back to me
SurrealDB version
1.3.0 for win10
Contact Details
lexman2@yandex.ru
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: