Fixed: ACT-1588 Native query support paging, support all databases

The last version not support for db2 and mssql, this commit supported, please check it.