Wide(*)Fields for Unicode

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
durumdara
Posts: 6
Joined: Fri 29 Apr 2011 11:16

Wide(*)Fields for Unicode

Post by durumdara » Wed 13 Apr 2016 13:26

Dear Support!

As we experienced you change field types in Unicode mode.

As I think in the new version of Delphis the TStringField can handle unicode values.
So may you don't need to change the field types (only in Char = AnsiChar versions).

Maybe it based on "same logic" in every PGDAC version?

Would you like to send information about it?

Thank you!

dd

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Wide(*)Fields for Unicode

Post by azyk » Fri 15 Apr 2016 08:54

PgDAC is compatible with Delphi versions that support Unicode and with versions without Unicode (before RAD Studio 2009). Therefore PgDAC will use the same classes for all these versions:

- if TPgConnection.Options.UseUnicode=True, then TWideStringField will be used for string fields
- if TPgConnection.Options.UseUnicode=False, then TStringField will be used for string fields

This behavior of PgDAC is correct.

Post Reply