ascot diagnostics

A2957

Error: No {used} ‘{name}’: no method or class query of the schema’s package is SqlProc under that name

CALL schema.name(...), the function schema.name(...) or FROM schema.name(...) names a stored procedure no class provides. A SqlProc method or class query of the schema’s package, inherited ones included, provides Class_Member, or its SqlName instead. A leading % is spelled sys_. IRIS refuses to compile a CALL (SQLCODE -428). For a function or table-valued function, IRIS compiles the class or routine, and the statement gets SQLCODE -359 or -30 when it runs. In a cursor’s SELECT, the class fails to compile instead. Fix the name, or mark the member SqlProc.

IRIS rejects the example. Checked without an environment, as --iris none.

Class Demo.SqlProcedureNotFound
{

ClassMethod Promote(name As %String) As %Integer [ SqlProc ] //! A8061
{
    Quit $Length(name)
}

ClassMethod Run() As %Integer //! A8061
{
    &sql(CALL Demo.SqlProcedureNotFound_Promot('Ann')) //! A2957
    Quit SQLCODE
}

}

All diagnostics