I'm trying to create a script that contains a procedure and then call that procedure. I've done this at work where we use Oracle, but no matter what I try with mariadb, I get an error. So I copied this "simple" proc directly from the MariaDb website, and it ALSO gives the same error:
DELIMITER //
CREATE PROCEDURE simpleproc (OUT param1 INT)
BEGIN
SELECT COUNT(*) INTO param1 FROM t;
END;
//
DELIMITER ;
CALL simpleproc(@a);
Here is the error: Error occurred during SQL script execution
Reason: SQL Error [1064] [42000]: (conn=40) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'OUT param1 INT)
Ideas as to how to make this work using dbeaver to connect to mariadb?
Update: I have been able to successfully create a procedure that passes NO parameters (i.e. it just does a select). But if I try to add ANY parameters to the proc, I get the error...