I'm at a loss, I can't see the reason something as simple as this won't work:
CREATE PROCEDURE test()
BEGIN
DECLARE var INT;
SET var = 0;
END
I'm literally just testing this because I can't seem to create anything at all. The error message I get is:
[ERROR in query 1] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
Line 3 is the DECLARE statement. Any ideas?