diff options
| author | Damien Regad <dregad@mantisbt.org> | 2018-03-30 18:47:26 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2018-03-30 18:47:26 +0200 |
| commit | bd898bf510431e2f8bce2469d188821e200af29f (patch) | |
| tree | c0b49b1f62e2c396bdd91ea09116f03cf344f70b /drivers/adodb-sqlite3.inc.php | |
| parent | 62ebb04b157467f4e650ef0e7a02120a2b41c169 (diff) | |
| parent | d29c23f2264ec95c6d3851e0f51ce240b2f36b74 (diff) | |
| download | adodb-bd898bf510431e2f8bce2469d188821e200af29f.tar.gz adodb-bd898bf510431e2f8bce2469d188821e200af29f.tar.bz2 adodb-bd898bf510431e2f8bce2469d188821e200af29f.zip | |
Merge branch 'hotfix/5.20'
I messed up the merge at c350c007ed585a4da4dc8c62ae7954cfe13b621f. Not
sure what I did or how, but the changes from the hotfix branch got lost.
Redoing the merge to fix the problem.
Diffstat (limited to 'drivers/adodb-sqlite3.inc.php')
| -rw-r--r-- | drivers/adodb-sqlite3.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/adodb-sqlite3.inc.php b/drivers/adodb-sqlite3.inc.php index d38d5104..f09893c3 100644 --- a/drivers/adodb-sqlite3.inc.php +++ b/drivers/adodb-sqlite3.inc.php @@ -337,6 +337,8 @@ class ADODB_sqlite3 extends ADOConnection { function SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0) { + $nrows = (int) $nrows; + $offset = (int) $offset; $offsetStr = ($offset >= 0) ? " OFFSET $offset" : ''; $limitStr = ($nrows >= 0) ? " LIMIT $nrows" : ($offset >= 0 ? ' LIMIT 999999999' : ''); if ($secs2cache) { |
