1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Auto-free result-set

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1026 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-08-27 07:33:29 +00:00
parent 4e19d6e034
commit cca05e3d26
21 changed files with 3 additions and 46 deletions

View File

@@ -182,7 +182,6 @@ if (!$columns) {
while ($row = $result->fetch_assoc()) {
$rows[] = $row;
}
$result->free();
// use count($rows) without LIMIT, COUNT(*) without grouping, FOUND_ROWS otherwise (slowest)
$found_rows = (intval($limit) && $group && count($group) < count($select)
? $dbh->result($dbh->query(" SELECT FOUND_ROWS()")) // space to allow mysql.trace_mode