Skip to content
Snippets Groups Projects

Initial stab at this, still has some failures but you get the idea.

Closes #3421164

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 253
    254 // Inline query arguments and log the query.
    255 $query = str_replace(array_keys($args), array_values($this->quoteQueryArgs($args)), $query);
    256 $performance_data->logQuery($query);
    257 }
    258
    259 /**
    260 * Wraps query arguments in double quotes if they're a string.
    261 *
    262 * @param array $args
    263 * The raw query arguments.
    264 *
    265 * @return array
    266 * The conditionally quoted query arguments.
    267 */
    268 protected function quoteQueryArgs(array $args): array {
  • 168 176 return $performance_data;
    169 177 }
    170 178
    179 /**
    180 * Logs a query in the performance data.
    181 *
    182 * @param \Drupal\Tests\PerformanceData $performance_data
    183 * The performance data object to log the query on.
    184 * @param string $query
    185 * The raw query.
    186 * @param array $args
    187 * The query arguments.
    188 */
    189 protected function logQuery(PerformanceData $performance_data, string $query, array $args): void {
  • added 1 commit

    Compare with previous version

  • added 1 commit

    • f3307f3e - Get rid of query aliasing altogether and find a clever way to placeholder the...

    Compare with previous version

  • added 3 commits

    • f3307f3e...3923a9f8 - 2 commits from branch project:11.x
    • 1e7ccafe - Merge remote-tracking branch 'origin/11.x' into 3421164-log-every-individual

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading