You are here

function devel_db_query in Devel 6

Same name and namespace in other branches
  1. 5 devel.module \devel_db_query()
1 call to devel_db_query()
devel_store_queries in ./devel.module

File

./devel.module, line 1020

Code

function devel_db_query($query) {
  global $active_db;
  $args = func_get_args();
  array_shift($args);
  $query = db_prefix_tables($query);
  if (isset($args[0]) and is_array($args[0])) {

    // 'All arguments in one array' syntax
    $args = $args[0];
  }
  _db_query_callback($args, TRUE);
  $query = preg_replace_callback(DB_QUERY_REGEXP, '_db_query_callback', $query);
  return db_query($query, $active_db);
}