Using before_update and after_update in local declarations using local variables fails with a java.io.IOException: Server connection lost It doesn't fail when using only global variables.
Confirmed.
Created attachment 156 [details] Test case
Fixes on the 4.0 branch from rev. 3063. We now report an error if before_update and after_update is used inside a template. In a future version we may consider allowing these statements inside templates, however, currently it is not clear to me what the semantics should be.
taking over