Problem with value assigment
Posted: Tue 29 Sep 2020 08:47
Hey,
we get following Error:
Incorrect values within SQLDA structure
empty pointer to data
at SQLVAR index 0
when running the following code
Problematic is the following Line:
If we change the Line of Code as follow
we won't get the SQLDA Error but the Procedure still doesn't get executed.
Only if we access the return value at least one time the SP get's executed.
We experience this behavior since upgrading from 7.2.X to 7.3.X.
Anyone experience this behavior as well?
Any help appreciated!
Regards
EDrob
we get following Error:
Incorrect values within SQLDA structure
empty pointer to data
at SQLVAR index 0
when running the following code
Code: Select all
storedProc := TIBCStoredproc.Create(NIL);
try
storedProc.Transaction := IBCTransaction;
storedProc.Connection := connection;
storedProc.StoredProcName := 'PROCNAME';
storedProc.Prepare;
storedProc.ParamByName('DateTimeVar').asString := DateTimeToStr(dateTimeValue);
storedProc.ParamByName('IntegerVar').asInteger := -1;
storedProc.ExecProc;
Code: Select all
storedProc.ParamByName('DateTimeVar').asString := DateTimeToStr(dateTimeValue);
Code: Select all
storedProc.ParamByName('DateTimeVar').asDateTime := dateTimeValue;
Only if we access the return value at least one time the SP get's executed.
We experience this behavior since upgrading from 7.2.X to 7.3.X.
Anyone experience this behavior as well?
Any help appreciated!
Regards
EDrob