Hey
I have problem with MySQL procedure. I created one looking like this:
CREATE DEFINER=`root`@`%` PROCEDURE `test`()
BEGIN
SELECT '1';
END
As You see it’s simple. And when I do this its fine:
system.db.runQuery('call test', 'WPPiM')
But when I want to call it this way it crashes:
proc = system.db.createSProcCall('test', 'WPPiM')
system.db.execSProcCall(proc)
I get following error:
Traceback (most recent call last):
File "<event:actionPerformed>", line 2, in <module>
java.lang.Exception: java.lang.Exception: Error executing system.db.execSProcCall()
caused by Exception: Error executing system.db.execSProcCall()
caused by GatewayException: User does not have access to metadata required to determine stored procedure parameter types. If rights can not be granted, configure connection with "noAccessToProcedureBodies=true" to have driver generate parameters that represent INOUT strings irregardless of actual parameter types.
caused by SQLException: User does not have access to metadata required to determine stored procedure parameter types. If rights can not be granted, configure connection with "noAccessToProcedureBodies=true" to have driver generate parameters that represent INOUT strings irregardless of actual parameter types.
Ignition v7.8.5 (b2016120813)
Java: Oracle Corporation 1.8.0_181
Does anyone know what is wrong? I need to use second way because I need IN and OUT parameters.