diff options
| author | Mark Newnham <mark@newnhams.com> | 2018-12-31 18:13:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-31 18:13:04 -0700 |
| commit | ad5a27b90632db1221a419cc91ff132eec0994a8 (patch) | |
| tree | 2310dfc8a08b9c4ed40ee28f28749f50a03a8294 /adodb-perf.inc.php | |
| parent | a51a426b6344fd26d4a1f7bc2d2671ed13231014 (diff) | |
| download | adodb-ad5a27b90632db1221a419cc91ff132eec0994a8.tar.gz adodb-ad5a27b90632db1221a419cc91ff132eec0994a8.tar.bz2 adodb-ad5a27b90632db1221a419cc91ff132eec0994a8.zip | |
Error logging slow queries under mysqli driver, see #463 , #439
Whilst this does introduce driver-specific code into the core
file, there are already numerous instances of that so not a
problem
thx to @ivanbogomoloff
Diffstat (limited to 'adodb-perf.inc.php')
| -rw-r--r-- | adodb-perf.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/adodb-perf.inc.php b/adodb-perf.inc.php index 5cfdfc89..add2fcba 100644 --- a/adodb-perf.inc.php +++ b/adodb-perf.inc.php @@ -167,6 +167,9 @@ function adodb_log_sql(&$connx,$sql,$inputarr) global $ADODB_PERF_MIN; if ($errN != 0 || $time >= $ADODB_PERF_MIN) { $ok = $conn->Execute($isql,$arr); + if($conn instanceof ADODB_mysqli && $conn->_queryID){ + mysqli_free_result($conn->_queryID); + } } else $ok = true; |
