EBcdOverflowException when calling Oracle stored procedure w
Posted: Thu 09 Oct 2008 11:18
Delphi 6
Oracle 9.2
dbexpoda.dll v4.20.0.11
--
With TSqlStoredProc (sp) component and stored procedure on Oracle,
when I use the following code, I get no error :
sp.params[0].Value := IntVal; (integer value)
sp.execproc; ---> OK
sp.params[0].AsString := StrVal; (string value)
sp.execproc; ---> OK
But, when I use any of the following codes, I get an "EBcdOverflowException" :
sp.params[0].AsInteger := IntVal; (integer value)
sp.execproc; ---> error
or
Params[0].DataType := ftInteger;
sp.params[0].Value := IntVal;
sp.execproc; ---> error
or
sp.parambyname('xxx').AsInteger := IntVal;
sp.execproc; ---> error
1- why does not it works with AsInteger ?
2- why this same code (i.e.: sp.params[0].AsInteger := IntVal;) works with Interbase and not with Oracle ?
Oracle 9.2
dbexpoda.dll v4.20.0.11
--
With TSqlStoredProc (sp) component and stored procedure on Oracle,
when I use the following code, I get no error :
sp.params[0].Value := IntVal; (integer value)
sp.execproc; ---> OK
sp.params[0].AsString := StrVal; (string value)
sp.execproc; ---> OK
But, when I use any of the following codes, I get an "EBcdOverflowException" :
sp.params[0].AsInteger := IntVal; (integer value)
sp.execproc; ---> error
or
Params[0].DataType := ftInteger;
sp.params[0].Value := IntVal;
sp.execproc; ---> error
or
sp.parambyname('xxx').AsInteger := IntVal;
sp.execproc; ---> error
1- why does not it works with AsInteger ?
2- why this same code (i.e.: sp.params[0].AsInteger := IntVal;) works with Interbase and not with Oracle ?