diff options
author | Kamil Tekiela <tekiela246@gmail.com> | 2021-12-29 02:30:59 +0300 |
---|---|---|
committer | Kamil Tekiela <tekiela246@gmail.com> | 2022-01-06 22:31:27 +0300 |
commit | f5bb90ebb9bbbac8a02ba981fd147dac0b8ec3b4 (patch) | |
tree | f8a7382aafd57ca262e40ad1d49136d762eaeaf2 /libraries/classes/Table.php | |
parent | 3acaca5f24a7e27ac5bf1b63c83af824e70bd295 (diff) |
Move queryAsControlUser - Dbal refactoring pt.3
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Diffstat (limited to 'libraries/classes/Table.php')
-rw-r--r-- | libraries/classes/Table.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libraries/classes/Table.php b/libraries/classes/Table.php index e48a627bbd..3d3f4437d6 100644 --- a/libraries/classes/Table.php +++ b/libraries/classes/Table.php @@ -932,7 +932,7 @@ class Table implements Stringable // must use DatabaseInterface::QUERY_BUFFERED here, since we execute // another query inside the loop - $tableCopyRs = $relation->queryAsControlUser($tableCopyQuery); + $tableCopyRs = $dbi->queryAsControlUser($tableCopyQuery); foreach ($tableCopyRs as $tableCopyRow) { $valueParts = []; @@ -952,7 +952,7 @@ class Table implements Stringable . implode('\', \'', $valueParts) . '\', \'' . implode('\', \'', $newValueParts) . '\')'; - $relation->queryAsControlUser($newTableQuery); + $dbi->queryAsControlUser($newTableQuery); $lastId = $dbi->insertId(); } @@ -1320,7 +1320,7 @@ class Table implements Stringable if ($relationParameters->columnCommentsFeature !== null) { // Get all comments and MIME-Types for current table - $commentsCopyRs = $relation->queryAsControlUser( + $commentsCopyRs = $dbi->queryAsControlUser( 'SELECT column_name, comment' . ($relationParameters->browserTransformationFeature !== null ? ', mimetype, transformation, transformation_options' @@ -1359,7 +1359,7 @@ class Table implements Stringable . '\'' : '') . ')'; - $relation->queryAsControlUser($newCommentQuery); + $dbi->queryAsControlUser($newCommentQuery); } unset($commentsCopyRs); @@ -1759,7 +1759,7 @@ class Table implements Stringable $this->dbi->escapeString($this->name) ); - $value = $this->relation->queryAsControlUser($sqlQuery)->fetchValue(); + $value = $this->dbi->queryAsControlUser($sqlQuery)->fetchValue(); if (is_string($value)) { return json_decode($value, true); } |