Skip to content

Commit

Permalink
Merge branch 'master' of github.com:DataTables/Editor-PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Mar 24, 2023
2 parents 37c9181 + 38642e5 commit 8aa6a3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Database/Driver/OracleQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ protected function _prepare( $sql )
}
else if ( $this->_type === 'select' && $this->_oracle_offset !== null ) {
$sql = '
select *
from ('.$sql.')
where rownum > '.$this->_oracle_offset .' AND rownum <= '.($this->_oracle_offset+$this->_oracle_limit);
select * from (select rownum rnum, a.*
from ('.$sql.') a where rownum <= '.($this->_oracle_offset+$this->_oracle_limit).')
where rnum > '.$this->_oracle_offset;
}

$this->database()->debugInfo( $sql, $this->_bindings );
Expand Down

0 comments on commit 8aa6a3a

Please sign in to comment.