Fix for DB2 and MSSQL process instance variable query