From 990500a149920b02b2b6e5ffe6e747dea7c6739e Mon Sep 17 00:00:00 2001
From: Andi Albrecht <albrecht.andi@gmail.com>
Date: Wed, 30 Sep 2020 09:31:40 +0200
Subject: Fix splitting when using DECLARE ... HANDLER (fixes #581).

---
 tests/files/mysql_handler.sql | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 tests/files/mysql_handler.sql

(limited to 'tests/files/mysql_handler.sql')

diff --git a/tests/files/mysql_handler.sql b/tests/files/mysql_handler.sql
new file mode 100644
index 0000000..702374e
--- /dev/null
+++ b/tests/files/mysql_handler.sql
@@ -0,0 +1,10 @@
+create procedure proc1()
+begin
+  declare handler for foo begin end;
+  select 1;
+end;
+
+create procedure proc2()
+begin
+  select 1;
+end;
-- 
cgit v1.2.1

