You are not logged in.
Pages: 1
Hi, I have a class with 71 propertys and fields.
I'm getting this error : "TPerson has too many fields".
Why there is a field quantity limitation? How can I handle It?
Last edited by TommyYommi (2013-01-26 14:12:59)
Offline
Please, look at comments in SynCommons
const
/// maximum number of fields in a database Table
// - is included in SynCommons so that all DB-related work will be able to
// share the same low-level types and functions (e.g. TSQLFieldBits,
// TJSONWriter, TSynTableStatement, TSynTable)
// - default is 64, but can be set to any value (64, 128, 192 and 256 optimized)
// - this constant is used internaly to optimize memory usage in the
// generated asm code, and statically allocate some arrays for better speed
MAX_SQLFIELDS = 64;
so just set this const to 128 and recompile.
2AB - maybe change to 128 in main trunc - I'm unfortunately have objects with large number of fields to.
Offline
It works!!!
Thank you
Offline
Pages: 1