You specified the FOR UPDATE or FOR READ ONLY clause in a DECLARE CURSOR statement. The FOR UPDATE or FOR READ ONLY clause
must be specified in the PREPARE statement, not the DECLARE CURSOR statement. For compatibility with previous versions (but
with reduced performance), the sqlpp -m HISTORICAL option can be used to allow the FOR UPDATE or FOR READ ONLY clause in the
DECLARE CURSOR statement.