Stored procedure execution was failing with error SQL_ERR_BADSQLDA. One additional column was recently allocated in the sqlda to return the batch execution result. In a specific server-side check done for stored procedures, the number of columns allocated did not match the number of parameters. The logic has been modified to correct this.