Migrating from Embarcaderos driver to devarts

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for MySQL in Delphi and C++Builder
Post Reply
Posts: 6
Joined: Fri 12 Feb 2016 17:19

Migrating from Embarcaderos driver to devarts

Post by totte_karlsson » Fri 29 May 2020 04:19

I just bought Devarts driver for MySQL, as I have had good experience with the same fro SQLITE, versus embarcaderso native one.

However, when switching a current application from using Embarcaderos native driver for MySQl to Devarts driver, I get a lot of errors saying that a strings actual field is 'WideString' instead of String?

How to fix this?

UPDATE: I found that unchecking the "UseUnicode" checkbox in the driver section seem to fix this problem. This is odd, since having it checked with the native driver don't seem to be a problem?


Devart Team
Posts: 3041
Joined: Wed 30 Jul 2014 07:16

Re: Migrating from Embarcaderos driver to devarts

Post by ViktorV » Thu 04 Jun 2020 13:27

This behavior is correctю When the UseUnicode property is set to True, you can retrieve string data at the client side in Unicode encoding format, which enables you to work simultaneously with almost any language. All TStringField values will be converted to TWideStringField.

Post Reply