TZStoredParam anomaly
Posted: 04.02.2021, 19:51
I started to experiment with stored procedures. Is there any reason why this code works:
and this one throws the exception "Cannot retrieve resultset data"?
Code: Select all
ZStoredProc1.Connection := OracleConnection;
ZStoredProc1.Params.CreateParam(ftLongWord, 'pGlobalID', ptResult);
ZStoredProc1.StoredProcName := 'GetNextGlobalID';
ZStoredProc1.Connection.Connect;
ZStoredProc1.ExecProc;
Code: Select all
ZStoredProc1.Connection := OracleConnection;
ZStoredProc1.StoredProcName := 'GetNextGlobalID';
ZStoredProc1.Params.CreateParam(ftLongWord, 'pGlobalID', ptResult);
ZStoredProc1.Connection.Connect;
ZStoredProc1.ExecProc;