Error: Table ‘{table}’ not found; the statement gets SQLCODE -30 when it runs
The FROM, INSERT INTO, UPDATE or DELETE FROM of embedded SQL names a table no class
projects: no persistent class in the workspace or on the IRIS instance has the schema’s
package and the table’s name as its own or as its SqlTableName, and no class query of
the package is a SqlView of that name. IRIS compiles the statement and gives it SQLCODE
-30 when it runs. The schema is the package with dots as underscores, SQLUser for User,
and an unqualified table is in SQLUser.
IRIS compiles the example. Checked without an environment, as --iris none.
Class Demo.SqlTableNotFound
{
ClassMethod Count() As %Integer //! A8061
{
&sql(SELECT COUNT(*) INTO :count FROM Demo.Missing) //! A3261
Quit count
}
}