I have a stored procedure which has .. WHERE something IN ? .....
I can't find any documentation on how to call this procedure using "exec" I tried all combinations
exec bestThumbs ([[324622 ,321235]]); Invalid parameter count for procedure: bestThumbs (expected: 1, received: 2)
exec bestThumbs [324622,321235,3454345]; Invalid parameter count for procedure: bestThumbs (expected: 1, received: 3)
exec bestThumbs [[324622 ,321235, 3454345]]; Invalid parameter count for procedure: bestThumbs (expected: 1, received: 3)
Furthermore , trying to do the same in PHP via JSON interface:
$a = array([163195,163199,163196]);
$params = json_encode($a);
$params = urlencode($params);
$querystring = "Procedure=$proc&Parameters=$params";
returns: VOLTDB ERROR: PROCEDURE bestThumbs TYPE ERROR FOR PARAMETER 0: org.voltdb.VoltTypeException: tryScalarMakeCompatible: Unable to match parameter array:int to provided long
What is the proper way of doing this ?
Thanks !