Lighter icon indicating copy to clipboard operation
Lighter copied to clipboard

AST generation fails when a column has over 183 columns

Open helje5 opened this issue 2 years ago • 0 comments

For example the CoreData database of the Apple Notes application has a table called ZICCLOUDSYNCINGOBJECT, which has 184 properties.

Generation for this eventually crashes due to the recursion done in:

  func generateBindStatementForProperty(
         _ property : EntityInfo.Property,
         index      : Expression,
         trailer    : () -> [ Statement ] = { [] }
       ) -> ( Statement, didRecurse: Bool )

Probably need to flatten that. Maybe not do recursive binds for tables with that many columns at all.

helje5 avatar Dec 04 '22 13:12 helje5