[fpc-devel] Major problem with Move and Array of Int64

Sergei Gorelkin sergei_gorelkin at mail.ru
Fri Sep 23 14:00:07 CEST 2011


23.09.2011 5:52, Andrew Brunner пишет:
> I use latest FPC from /trunk/ and this problem just started happening recently.
>...
>
> Posting to the MySQL 5.1 database : the field size is as expected.
> Retrieving /converting the list (asString) from the database with all
> values set to small numbers appears to work
> Retrieving converting the list (asString) from teh database with
> larger values no longer works.
>
> Did anyone do anything to System.Move?
> Did anyone recently do work on BLOB features to MySQL 5.1 connector?

Recently strings behavior was changed, they are now codepage-aware. The compiler can now implicitly 
convert strings from one encoding to another. To handle non-string data, you should use 
RawByteString type, or better yet non-string types like (dynamic) array of byte.

Regards,
Sergei





More information about the fpc-devel mailing list