Skip to content

Commit

Permalink
fix invalid sql
Browse files Browse the repository at this point in the history
  • Loading branch information
jygaulier committed Nov 13, 2023
1 parent 63d0006 commit b6735ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Alchemy/Phrasea/Command/Thesaurus/Translator/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ public function __construct(GlobalConfiguration $globalConfiguration, string $jo
}

if (array_key_exists('if_status', $job_conf)) {
$selectRecordsClauses[] = "`status` & b:sb_and = b:sb_equ";
$this->selectRecordParams[':sb_and'] = str_replace(['0', 'x'], ['1', '0'], $job_conf['if_status']);
$this->selectRecordParams[':sb_equ'] = str_replace('x', '0', $job_conf['if_status']);
$selectRecordsClauses[] = "`status` & :sb_and = :sb_equ";
$this->selectRecordParams[':sb_and'] = 'b'.str_replace(['0', 'x'], ['1', '0'], $job_conf['if_status']);
$this->selectRecordParams[':sb_equ'] = 'b'.str_replace('x', '0', $job_conf['if_status']);
}

$cnx = $this->databox->get_connection();
Expand Down

0 comments on commit b6735ad

Please sign in to comment.