1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 18:47:20 +01:00

SQL debug

This commit is contained in:
Savetheinternet 2011-10-10 21:49:45 +11:00
parent 90d1faafd1
commit b695e6f5c5

View File

@ -77,6 +77,8 @@
if($config['debug']) {
$start = microtime(true);
$query = $pdo->query($query);
if(!$query)
return false;
$time = round((microtime(true) - $start) * 1000, 2) . 'ms';
$debug['sql'][] = Array(
'query' => $query->queryString,