I have recently upgraded to Delphi 2009 in order to correctly use Unicode databases.
I'm connecting to a UTF-8 MySQL 5 db via dbExpress, using Devart's dbExpress driver (v4.40)
Using standard TSQLConnection, data is accessed thru TSQLQuery->TDataSetProvider->TClientDataSet->TDataSource
The problem is, that when adding fields to FieldList (via Add All Fields), string fields get mapped to TStringField which is AnsiString not WideString. Therefore when executing application I get the following error message:
Project bbadmin.exe raised exception class EDatabaseError with message 'sqqTeams: Type mismatch for field 'NAME', expecting: String actual: WideString'.
I think I could manually chage their types to TWideStringField, however I doubt it would be the way doing it.
How can I manage to get these Fields automatically mapped to WideString fields?