You are here

function db_queryd in Drupal 4

Debugging version of db_query().

Echoes the query to the browser.

Related topics

File

includes/database.inc, line 205
Wrapper for database interface code.

Code

function db_queryd($query) {
  $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, 1);
}