mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 10:01:55 +02:00
Start of LIMIT functionality...got to tired to finish it
git-svn-id: file:///svn/phpbb/trunk@103 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -95,9 +95,27 @@ class sql_db
|
||||
unset($this->query_result);
|
||||
if($query != "")
|
||||
{
|
||||
if(eregi("LIMIT", $query))
|
||||
{
|
||||
eregi("^([[:alnum:][:cntrl:] \*\,\'\"\+\.\(\)_=]+)LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
|
||||
|
||||
$query = $limits[1];
|
||||
if($limits[3])
|
||||
{
|
||||
$row_offset = $limits[2];
|
||||
$num_rows = $limits[3];
|
||||
}
|
||||
else
|
||||
{
|
||||
$row_offset = 0;
|
||||
$num_rows = $limits[2];
|
||||
}
|
||||
|
||||
|
||||
$this->query_result = OCIParse($this->db_connect_id, $query);
|
||||
OCIExecute($this->query_result);
|
||||
}
|
||||
}
|
||||
if($this->query_result)
|
||||
{
|
||||
unset($this->row[$this->query_result]);
|
||||
|
Reference in New Issue
Block a user