I have a Delphi application database of which is in Oracle.
Now there’s a stored procedure, it’s got an IN parameter called PARAM1 of NUMBER datatype.
As I assume we can’t specify precision and scale for parameters. But this way on Delphi side the parameter appears as float.
In fact I need it as an integer.
What do I need to do for that?
%TYPEto specify a “restricted” data type for a parameter. If your parameter is of integer data type, then specifyBINARY_INTEGERorPLS_INTEGERas parameter data type.TParam.DataType) depends on the data access components, Oracle and even Delphi versions. Best to provide this info.ftFloatdata type cons – it may lead to precision lost. If that is the issue, the you can setDataTypeby hands. Also you can useAsXxxxparameter properties to assign a parameter value more comfortably.