[Lazarus] Losing data when saving Database fileds with "Size" defined and UTF8 chars

Reinier Olislagers reinierolislagers at gmail.com
Wed Jul 17 12:04:29 CEST 2013


On 17/07/2013 11:36, Graeme Geldenhuys wrote:
> But getting back to the point. SqlDB seems to always define strings in
> byte length, yet the DB-aware components use "character lengths". This
> is what is causing the trouble.
Exactly.

> Other database components, as far as I remember, have .Size and
> .DataSize to differentiate between byte size and character length
> information.

AFAIR, sqldb has .Size and .DataSize as well, the difference has just
not been implemented.
But my memory is not so reliable... ;)





More information about the Lazarus mailing list