I have following TSQLDataSet
in my Delphi 7 application. It is fetching 2 fields (ID and Name) from table MyTable.
object SQLDataSet: TSQLDataSet
GetMetadata = False
CommandText = 'select * from MyTable'
MaxBlobSize = -1
Params = <>
SQLConnection = mySQLConnection
object SQLDataSetID: TIntegerField
FieldName = 'ID'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object SQLDataSetNAME: TStringField
FieldName = 'NAME'
Required = True
Size = 50
end
end
When I migrated to the Delphi XE4, I am getting following error:
class EDatabaseError with message 'SQLDataSet: Type mismatch for field 'NAME', expecting: String actual:WideString'
What could be the possible cause of this problem and how should I get rid of it?
Note: I am using firebird 2.5.2
.
TStringField
toTWideStringField
– ZigiZNAME
field of tableMyTable
? – Jeroen Wiert PluimersWideString
. – Jeroen Wiert Pluimers