summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adodb.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb.inc.php b/adodb.inc.php
index 09b5d38d..4507bb9c 100644
--- a/adodb.inc.php
+++ b/adodb.inc.php
@@ -1516,7 +1516,7 @@ if (!defined('_ADODB_LAYER')) {
'/(^\s*select\s)/i','\\1 '.$this->hasTop.' '.((integer)$nrows).' ',$sql);
}
} else {
- $nn = $nrows + $offset;
+ $nn = ((integer)$nrows) + ((integer)$offset);
if ($isaccess || $ismssql) {
$sql = preg_replace(
'/(^\s*select\s+(distinctrow|distinct)?)/i','\\1 '.$this->hasTop.' '.$nn.' ',$sql);