You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT [K0] FROM (SELECT1 [K0] UNION ALLSELECT2UNION ALLSELECT3)
This works fine when there are 500 or fewer statements. But with more than 500 statements, the following error is returned: SQLite statement failed to prepare: BE_SQLITE_ERROR too many terms in compound SELECT (BE_SQLITE_ERROR).
For example passing the following ECSQL:
The following ECSQL statement:
Gets converted to:
This works fine when there are 500 or fewer statements. But with more than 500 statements, the following error is returned:
SQLite statement failed to prepare: BE_SQLITE_ERROR too many terms in compound SELECT (BE_SQLITE_ERROR)
.For example passing the following ECSQL:
Results in the error above.
This is because
SELECT ... UNION ALL ...
has a limit of 500 set, see: https://www.sqlite.org/limits.html#:~:text=Maximum%20Number%20Of%20Terms%20In%20A%20Compound%20SELECT%20StatementAnd VALUES(...),(...) should not have a limit, see: https://www.sqlite.org/lang_select.html#values:~:text=6.-,The%20VALUES%20clause,-The%20phrase%20%22VALUES
The text was updated successfully, but these errors were encountered: