mirror of
https://github.com/friendica/friendica
synced 2025-05-15 03:44:12 +02:00
Merge pull request #10867 from annando/replace-p
replace "p" with higher level database functions
This commit is contained in:
commit
f05fecaec1
8 changed files with 34 additions and 85 deletions
|
@ -106,7 +106,7 @@ HELP;
|
|||
$this->errored = 0;
|
||||
|
||||
do {
|
||||
$result = $this->dba->p('SELECT `id`, `parameter` FROM `workerqueue` WHERE `command` = "APDelivery" AND `parameter` LIKE "[\"%\",\"\",%" LIMIT ' . $this->examined . ', 100');
|
||||
$result = $this->dba->select('workerqueue', ['id', 'parameter'], ["`command` = ? AND `parameter` LIKE ?", "APDelivery", "[\"%\",\"\",%"], ['limit' => [$this->examined, 100]]);
|
||||
while ($row = $this->dba->fetch($result)) {
|
||||
$this->examined++;
|
||||
$this->processRow($row);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue