Details
Description
Customer has few legacy functions.
One of the function has some syntax error.
But more importantly customer is unable to take a dump of the function even with --force.
mysqldump --no-data --routines --events --triggers --force --databases xxxx> dump.sql
|
mysqldump: Couldn't execute 'SHOW CREATE FUNCTION `FF1`': Undeclared variable: DBPAY_DRAWING_AMT (1327) |
Force option is supposed to ignore the error, add a comment in the dump file and move on to the next object.
This doesnt happen for this particular function.
But the behaviour can be observed for "Views with missing tables" errors.
reproduced with:
Query OK, 1 row affected (0.001 sec)
ERROR 1327 (42000): Undeclared variable: no_such_var
MariaDB [mysql]> show warnings;
| Error | 1327 | Undeclared variable: no_such_var |
I suppose it would be more consistent to treat events and triggers the same way during mariadb-dump too.