mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-14 10:57:38 +01:00
SQL debug
This commit is contained in:
parent
ef125249b9
commit
851d8eaa9b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user