Code Duplication    Length = 11-11 lines in 3 locations

system/libraries/drivers/Database/Mysql.php 1 location

@@ 438-448 (lines=11) @@
435
        return $field_names;
436
    }
437
438
    public function seek($offset)
439
    {
440
        if ($this->offsetExists($offset) and mysql_data_seek($this->result, $offset)) {
441
            // Set the current row to the offset
442
            $this->current_row = $offset;
443
444
            return true;
445
        } else {
446
            return false;
447
        }
448
    }
449
} // End Mysql_Result Class
450

system/libraries/drivers/Database/Mysqli.php 1 location

@@ 256-266 (lines=11) @@
253
        return $field_names;
254
    }
255
256
    public function seek($offset)
257
    {
258
        if ($this->offsetExists($offset) and $this->result->data_seek($offset)) {
259
            // Set the current row to the offset
260
            $this->current_row = $offset;
261
262
            return true;
263
        }
264
265
        return false;
266
    }
267
268
    public function offsetGet($offset)
269
    {

system/libraries/drivers/Database/Pgsql.php 1 location

@@ 417-427 (lines=11) @@
414
        return $this->insert_id;
415
    }
416
417
    public function seek($offset)
418
    {
419
        if ($this->offsetExists($offset) and pg_result_seek($this->result, $offset)) {
420
            // Set the current row to the offset
421
            $this->current_row = $offset;
422
423
            return true;
424
        }
425
426
        return false;
427
    }
428
429
    public function list_fields()
430
    {