2015-06-11, 08:00 AM
The DB classes have a function "data_seek", which looks like this for SQLite (located in the PDO Class, but called without any modifications):
And that array is then checked in "fetch_array". However as we're working with PDO here "query" doesn't return an instance of "resource" as the doc blocks say but an instance of "PDOStatement". And that class hasn't a variable named "guid".
I don't know whether we use that function in the core and haven't tested it but from the code this shouldn't work.
function seek($query, $row)
{
$this->seek_array[$query->guid] = array('offset' => PDO::FETCH_ORI_ABS, 'row' => $row);
}
And that array is then checked in "fetch_array". However as we're working with PDO here "query" doesn't return an instance of "resource" as the doc blocks say but an instance of "PDOStatement". And that class hasn't a variable named "guid".
I don't know whether we use that function in the core and haven't tested it but from the code this shouldn't work.