TMDM-7524: "The web server does not work after loging it use DB2 database."

Changes type of cursor mode when query uses projection (fixes cases where projection includes CLOB columns).
(https://jira.talendforge.org/browse/TMDM-7524)