Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8bad7516
Commit
8bad7516
authored
Sep 08, 2006
by
Neil Drumm
Browse files
#42476
by Bèr Kessels. db_queryd() belongs in devel module.
parent
0ae39120
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/database.inc
View file @
8bad7516
...
...
@@ -197,23 +197,6 @@ function db_query($query) {
return
_db_query
(
$query
);
}
/**
* Debugging version of db_query().
*
* Echoes the query to the browser.
*/
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
);
}
/**
* Helper function for db_rewrite_sql.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment