delimiter |; create procedure foo() begin select 1; end | create function bar() returns int return 1 | delimiter ;| --exec $MYSQL_DUMP -q -R --hex-blob --single-transaction --fields-terminated-by="|" --lines-terminated-by='\n' test --tab . -r $MYSQLTEST_VARDIR/tmp/bug26670.proc --exec cat $MYSQLTEST_VARDIR/tmp/bug26670.proc --exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/bug26670.proc