Cannot convert type Int to Tinyint Unidac 6.1.3
Cannot convert type Int to Tinyint Unidac 6.1.3
Hi, Have a lot of stored procedures with tinyint parameters in sql server, and the type for those parameters is always ftWord. With the latest version a get the error "Cannot convert type Int to Tinyint". If I change the ftWord to ftSmallInt that fix the problem, but as I wrote before, have a plenty of stored procedures like this one. Thanks
Re: Cannot convert type Int to Tinyint Unidac 6.1.3
Have you tried Data Type Mapping?
Re: Cannot convert type Int to Tinyint Unidac 6.1.3
Support for parameters with tinyint data type was added to UniDAC. You should specify the Delphi ftByte data type for such parameters. For example:
Code: Select all
UniStoredProc.ParamByName(ParamName).DataType := ftByte;