mysql-native v3.0.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


Function prepareProcedure

Convenience function to create a prepared statement which calls a stored procedure.

Prepared prepareProcedure (
  Connection conn,
  string name,
  int numArgs
);

OUT parameters are currently not supported. It should generally be possible with MySQL to present them as a result set.

Be careful that your numArgs is correct. If it isn't, you may get a MYX with a very unclear error message.

Throws

MYX if the server has a problem.

Parameters

NameDescription
name The name of the stored procedure.
numArgs The number of arguments the stored procedure takes.