Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-10

MySQL 5.1 and Sum(Field) sql statement

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

I'm using Ubuntu 10.10 and Lazarus, FPC from svn/trunk (today) and I got the MySQL51 database component to pickup the field returned during the Query.Open command.

http://bugs.freepascal.org/view.php?id=17661

I've traced into where FPC is looking for the field type and goes through the list of known types before assigning a field to the result. My database fields that I'm adding are FIELD_TYPE_LONGLONG (for Int64) so I would expect the resultant field in the datagram to be recognized as FIELD_TYPE_LONGLONG.

Now the problem is, the field is defined as the wrong type.

Reply by email