diff options
Diffstat (limited to 'src/whereInt.h')
-rw-r--r-- | src/whereInt.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/whereInt.h b/src/whereInt.h index 8ba8a7072..40a720ab9 100644 --- a/src/whereInt.h +++ b/src/whereInt.h @@ -501,10 +501,15 @@ struct WhereInfo { Bitmask revMask; /* Mask of ORDER BY terms that need reversing */ WhereClause sWC; /* Decomposition of the WHERE clause */ WhereMaskSet sMaskSet; /* Map cursor numbers to bitmasks */ - WhereLevel a[1]; /* Information about each nest loop in WHERE */ + WhereLevel a[FLEXARRAY]; /* Information about each nest loop in WHERE */ }; /* +** The size (in bytes) of a WhereInfo object that holds N WhereLevels. +*/ +#define SZ_WHEREINFO(N) ROUND8(offsetof(WhereInfo,a)+(N)*sizeof(WhereLevel)) + +/* ** Private interfaces - callable only by other where.c routines. ** ** where.c: |