Host variable <str> is an enum variable which is illegal in SQL statements. Explanation: The named variable is defined as a C enum variable. Such fields are not legal in SQL statements. User Action: Use a different variable.