-300 THE STRING CONTAINED IN HOST VARIABLE OR PARAMETER position-number IS NOT NUL-TERMINATED
Explanation
A host variable or parameter is invalid. Its
entry in the SQLDA is indicated by position-number.
The host variable or parameter is a C string variable that is one
of the following:
- Used as an input parameter to a stored procedure or function.
- Returned as an output parameter from a stored procedure or function.
- Referenced as an input variable in an embedded SQL statement.
- Used to provide a value for a parameter marker of a dynamic SQL statement.
If the data type of the variable is character string, it is invalid because it does not include X'00'. If the data type of the variable is graphic string, it is invalid because it does not include X'0000'.
System action
The statement cannot be processed.
Programmer response
Append a NUL-terminator to the end of the string.
SQLSTATE
22024