The declare section has an incorrect delimiter statement.
Each declare section must be included in the BEGIN DECLARE SECTION and END DECLARE SECTION.