Closed alanseiden closed 3 years ago
A side effect of using result sets instead of output parameters may be this issue, because after a disconnect, result sets cannot be retrieved, whereas an output parameter would return immediately upon execute: https://github.com/zendtech/IbmiToolkit/issues/129
Closing issue because #129 was handled in a different manner, and using result sets more portable between PDO_IBM and PDO_ODBC than output parameters would be. Output parameters can be finicky.
https://github.com/zendtech/IbmiToolkit/blob/master/ToolkitApi/PdoSupp.php
Unlike the procedural odbc extension, PDO permits output parameters. It should function more like ibm_db2 in that way than odbc. It can get output params (it doesn't have to use result sets) and therefore use the stored procedures of ibm_db2 that use output params rather than odbc with its result set.