ascot diagnostics

A3825

Error: Option ‘{option}’ is given twice; TRUNCATE TABLE and LOAD accept each option once

A TRUNCATE TABLE or LOAD statement gives an option twice, such as %NOLOCK %NOLOCK. INSERT, UPDATE, DELETE and SELECT accept a repeated option, but these two statements do not. IRIS refuses to compile the class or routine (SQLCODE -1). Write each option once.

IRIS rejects the example.

Class Demo.SqlRepeatedOption
{

ClassMethod Clear()
{
    &sql(TRUNCATE TABLE %NOLOCK %NOLOCK Demo.Person) //! A3825
}

}

All diagnostics