#1 2013-01-26 14:12:15

TommyYommi
Member
Registered: 2013-01-18
Posts: 27

Too Many Fields

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

#2 2013-01-26 15:55:54

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,548
Website

Re: Too Many Fields

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

#3 2013-01-26 18:15:18

TommyYommi
Member
Registered: 2013-01-18
Posts: 27

Re: Too Many Fields

It works!!!

Thank you  big_smile

Offline

Board footer

Powered by FluxBB