Function DatabaseConnector->find_query_hotspots

Definitions

sources/database.php

  • Find key parts of SQL query so we can inject into it.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$query string No No required parameter N/A N/A The query

Returns

  • A pair: position just before " FROM ", position just before the end of the FROM clause
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find key parts of SQL query so we can inject into it.
 *
 * @param  string $query The query
 * @return array A pair: position just before " FROM ", position just before the end of the FROM clause
 */

protected function find_query_hotspots(string $query) : array