ascot diagnostics

A6734

Error: Index option ‘{option}’ is out of order: they go PAD_INDEX, FILLFACTOR, IGNORE_DUP_KEY, DROP_EXISTING, STATISTICS_NORECOMPUTE, each once

An option after WITH in CREATE INDEX comes before one already given, or repeats it. IRIS reads the options in one order, PAD_INDEX, FILLFACTOR, IGNORE_DUP_KEY, DROP_EXISTING, STATISTICS_NORECOMPUTE, each at most once. At any other, the statement ends early, and IRIS refuses to compile the class (SQLCODE -25, Input (IDENTIFIER) encountered after end of query). Put the options in that order, each once.

IRIS rejects the example.

Class Demo.SqlIndexOptionOrder
{

ClassMethod Index()
{
    &sql(CREATE INDEX NameIdx ON Demo.Person (Name) WITH FILLFACTOR = 80, PAD_INDEX) //! A6734
}

}

All diagnostics