You are here

function coder_upgrade_upgrade_call_db_query_alter in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/conversions/db.inc \coder_upgrade_upgrade_call_db_query_alter()

Implements hook_upgrade_call_db_query_alter().

File

coder_upgrade/conversions/db.inc, line 26
Provides conversion routines applied to database API function calls and hooks.

Code

function coder_upgrade_upgrade_call_db_query_alter(&$node, &$reader) {

  // NEEDS WORK
  // Disable this routine until it is improved.
  //  return;

  /*
   * Use cases
   * - query is a string: parse directly
   * - query is a variable; find the variable and see if it is a string (assigned only once or always from strings, no expressions)
   * - query is an expression (leave this alone)
   */
  if ($sql = coder_upgrade_locate_query_string($node)) {

    // Parse the string.
    coder_upgrade_parse_query_string($node, $sql);
  }
}