'%1' host variable must be a C string type

Error code 2615
Probable cause

A C string was required in an embedded SQL statement (for a cursor name, option name, and so on) and the value supplied was not a C string.