Has anyone thought about NOT using TDBLookupComboBox, but the NON-DB-Bound LuCB?
Maybe instead of trying to force the SQL to work properly, the issue could have been resolved already by filling up the Control "by hand"
The problem with the fix isn't contained to the lookupbox anymore.
TDataset.Locate also doesn't handle the ftMemo well (you can't use Locate with those fields).
The fact that TEXT is translated to ftMemo isn't a big deal as long as VARCHAR and CAST is treated as ftString.
Forgive my ignorance but does that imply that if the patch would look more like that of the fix for ODBCConnection that this current issue could be solved (e.g. distinguish in VARCHAR type between ftString and ftmemo ) ?
I'm not familiar with the fix of odbcconnection.
But FPC could first fix the VARCHAR without length. After that, the fix for virtual tables for which this fix was made, isn't needed anymore and those can revert back to ftString.
Eh? No.
CAST should be treated as the DataType it is being cast to.
And yes, CAST to CHAR/VARCHAR should be treated as ftString
True. And it will if the fix was reversed.
(After which the issue for cut field in virtual table can be re-investigated)