I noticed something wierd in my application, and I cannot find a reason for it.
Basically I have a field which is an identifier field, built from random letters and numbers... For some reason in the database, the full field value is shown(inside phpmyadmin) but when I load the field in delphi XE7, it stops at the first number... Below are two examples:
database : M7DhPBxh0gqjHFRNYjCbOM3N8GeMTrkwsGSm6hSR6NRPwJsqRUqW0Lq6o4kRhBKgDUkSQvuEgomVFrcYX3OS4YOXAURURQ7pe2nrQXBIPvf9cM3iWFGx9lN0IVl7qC2B0ylgNmwXkaoL3UTOXSgZFHF6YoQwHbrcTaCcGSNU7a4pX9pG5BLICQAXvY8wFNSiVVCPgkS1ZwCz0mPLpfA9soGXA4GWoF8MQ35pEF2h0knmTnzqviJ7Tcovlz
Delphi: M7
database : RkMhDlgyto8rjNCQFv5gJFwLYy6MRlXBe3URGIDAzakzgfhkVlM6NTofI9zLvbqrt3IJTN38v9aJzXHVm56JPuxJ1uw5O2ZMNOrGTvZSv2Lj9trqTpsv8V0rEfwPf8wo2d0LjOsweQHNMhik1rwAIw3uUAJ7fBPv0k2XyWTqgTxSdN3jz3K6W8dOnZZyRITKcDaBBbwT9JEPfXUAs29fp48Cdn7GpTYryZhdXEMCEKJIUxgIkIDuqCySNk
Delphi: RkMhDlgyto8
I simply use the code below to load the table with zeoslib zquery:
datalive.achievements.active:=false;
datalive.achievements.SQL.Text:='Select * from achievements where employee_id=:employee_id order by date_of_achievement,description,action_date';
Addparam(datalive.achievements,'employee_id',ftString,datalive.employees.FieldByName('employee_id').AsString);
datalive.achievements.Active:=true;
Is there any reason why this would happen?
UPDATE:
I have just noticed, it happen without any numbers aswell... Example is below:
Delphi: GJThADDBXPpqCkWE
database : GJThADDBXPpqCkWEItmtfRtCuRsXnRPlKxGqzODrAqIXGuzSZ