Print number of rows in SQL command
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@965 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
b8cf0e78b0
commit
1846401b7d
|
@ -48,9 +48,13 @@ if (!$error && $_POST) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$end = explode(" ", microtime());
|
$end = explode(" ", microtime());
|
||||||
echo "<p class='time'>" . lang('%.3f s', max(0, $end[0] - $start[0] + $end[1] - $start[1])) . "\n";
|
$i = 0;
|
||||||
do {
|
do {
|
||||||
$result = $dbh->store_result();
|
$result = $dbh->store_result();
|
||||||
|
if (!$i) {
|
||||||
|
echo "<p class='time'>" . (is_object($result) ? lang('%d row(s)', $result->num_rows) . ", ": "") . lang('%.3f s', max(0, $end[0] - $start[0] + $end[1] - $start[1])) . "\n";
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
if (is_object($result)) {
|
if (is_object($result)) {
|
||||||
select($result, $dbh2);
|
select($result, $dbh2);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -13,12 +13,13 @@ Show type in field name title (thanks to Jakub Sochor)
|
||||||
Preselect now() for timestamp columns (thanks to paranoiq)
|
Preselect now() for timestamp columns (thanks to paranoiq)
|
||||||
Clear history (thanks to paranoiq)
|
Clear history (thanks to paranoiq)
|
||||||
Prefill insert by foreign key searches
|
Prefill insert by foreign key searches
|
||||||
|
Print number of rows in SQL command
|
||||||
Remove Delete button from Edit page - use mass operation for it
|
Remove Delete button from Edit page - use mass operation for it
|
||||||
Faster multiple update, clone and delete
|
Faster multiple update, clone and delete
|
||||||
Faster table list in navigation
|
Faster table list in navigation
|
||||||
Download version checker and syntax highlighting from HTTPS
|
Download version checker and syntax highlighting from HTTPS
|
||||||
Use HTML Strict instead of XHTML
|
Use HTML Strict instead of XHTML
|
||||||
Remove function minification for performance and customization
|
Remove function minification in favor of performance and customization
|
||||||
Fix grant ALL PRIVILEGES with GRANT OPTION
|
Fix grant ALL PRIVILEGES with GRANT OPTION
|
||||||
Fix CSV import
|
Fix CSV import
|
||||||
Fix work with default values (thanks to Jiri Pospisil)
|
Fix work with default values (thanks to Jiri Pospisil)
|
||||||
|
|
Loading…
Reference in a new issue