SQLNativeSql in the Cursor Library
Note The cursor library incorrectly returns SQLSTATE 34000 (Invalid cursor name)
if the cursor name is invalid in a positioned update or delete statement that
is passed in the InStatementText argument of SQLNativeSql. SQLNativeSql is not intended to return syntax errors, which are only returned upon
statement preparation or execution.