Error: A CALL argument cannot name a column: ‘{column}’ has no table to come from
An argument of CALL names a column. A CALL reads no table, so the column has no table to
come from. An argument is a literal, a host variable or an expression of those. IRIS refuses
to compile the class (SQLCODE -1, CALL PROCEDURE ARGUMENT expected). Pass the value in a
host variable, such as :age.
IRIS rejects the example.
Class Demo.SqlCallColumn
{
ClassMethod Twice(n As %Integer) As %Integer [ SqlProc ]
{
Quit n * 2
}
ClassMethod Run()
{
&sql(CALL Demo.SqlCallColumn_Twice(Age)) //! A2521
}
}