Claryan
asked on
Delphi ADO - DB2, Old Delphi 7 code. Type mismatch for field. Expecting String actual: FixedWidechar
We have Ado against DB2 base via TSQLConnection. Data are stored TADOTable's. If we map new fields, they are stored in datamodule as TStringField (if char in Db2). If I who has Delphi 2006 installed run the application. It works fine.
If a user run the application. She get the error: ADOTABLE...:Type mismach for field 'xxx', expecting: String actual:fixedwidechar.
There are no code before insert in adotable and no code.
If a user run the application. She get the error: ADOTABLE...:Type mismach for field 'xxx', expecting: String actual:fixedwidechar.
There are no code before insert in adotable and no code.
ASKER
thanks.
But is it posible to overload this class. and thus not make any changes to default Delphi.
But is it posible to overload this class. and thus not make any changes to default Delphi.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very, very much. Used alternative 2.
ASKER
This was very good!!
compatible:= FieldDef.DataType in [ftstring,ftwidestring]
to
compatible:= FieldDef.DataType in [ftstring,ftwidestring,ftf