diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js index 39f55bb0383f83739af5f1e0db179ffe6d4b47e5..6926f5ec35b7aea6d9d61c3e69b829531885a786 100644 --- a/process/Sql_lib/process.js +++ b/process/Sql_lib/process.js @@ -4256,14 +4256,15 @@ SqlMaskingUtils.prototype.limit = function(pRowAmount) switch(this.dbType) { case db.DBTYPE_POSTGRESQL8: - case db.DBTYPE_ORACLE10_CLUSTER: - case db.DBTYPE_ORACLE10_THIN: - case db.DBTYPE_ORACLE10_OCI: case db.DBTYPE_MARIADB10: case db.DBTYPE_MYSQL4: - case db.DBTYPE_SQLSERVER2000: return "LIMIT " + pRowAmount; + case db.DBTYPE_SQLSERVER2000: + return "offset 0 rows fetch first " + pRowAmount + " rows only"; case db.DBTYPE_DERBY10: + case db.DBTYPE_ORACLE10_CLUSTER: + case db.DBTYPE_ORACLE10_THIN: + case db.DBTYPE_ORACLE10_OCI: return "fetch first " + pRowAmount + " rows only"; } }