Same name and namespace in other branches
- 4.7.x includes/database.inc \db_queryd()
Debugging version of db_query().
Echoes the query to the browser.
Related topics
1 call to db_queryd()
- update_50 in database/
updates.inc
File
- includes/
database.inc, line 163 - Wrapper for database interface code.
Code
function db_queryd($query) {
$args = func_get_args();
$query = db_prefix_tables($query);
if (count($args) > 1) {
if (is_array($args[1])) {
$args = array_merge(array(
$query,
), $args[1]);
}
$args = array_map('db_escape_string', $args);
$args[0] = $query;
$query = call_user_func_array('sprintf', $args);
}
return _db_query($query, 1);
}