Merge pull request #10867 from annando/replace-p

replace "p" with higher level database functions
This commit is contained in:
Hypolite Petovan 2021-10-13 19:33:59 -04:00 committed by GitHub
commit f05fecaec1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 34 additions and 85 deletions

View file

@ -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);