26.11.2021 17:28, Tony Whyman wrote:
1. IAttachment.prepare is used to parse 'Update Employee Set Hire_Date =
? Where EMP_NO = ? Returning LAST_NAME'
2. IStatement.getType is then used to determine the statement type.
OK so far.
3. Prior to calling IStatement.Execute, the statement type is checked.
The current (IBX) code raises an exception if the sql statement type is
isc_info_sql_stmt_select in order to stop the wrong IStatement method
being called.
Why? How is it different from SELECT returning isc_info_sql_stmt_select?
They should work the same way. Is the SQL text also parsed to detect
UPDATE and that conflicts with the returned statement type?
Dmitry
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel