From 3313f7baa1934f279245ccb81eceaad29d5d6d73 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 3 Feb 2010 15:30:52 +0000 Subject: [PATCH] Search in all tables git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1302 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- changes.txt | 2 ++ editor/db.inc.php | 25 +++++++++++++++++++++++++ todo.txt | 1 + 3 files changed, 28 insertions(+) diff --git a/changes.txt b/changes.txt index 3fd63a9e..36ebe243 100644 --- a/changes.txt +++ b/changes.txt @@ -1,8 +1,10 @@ Adminer 2.3.0-dev: Support for permanent login (customization required) +Search in all tables (Editor) Show status variables Print sums in tables overview Add Delete button to Edit page (regression from 2.0.0) +Print error summary in SQL command Simplify SQL syntax error message Show SQL query info if available Delete length when changing type in alter table diff --git a/editor/db.inc.php b/editor/db.inc.php index dd581163..4a8e990b 100644 --- a/editor/db.inc.php +++ b/editor/db.inc.php @@ -1,2 +1,27 @@ +

+ +"> + +

+ $table_status) { + $name = $adminer->tableName($table_status); + if (isset($table_status["Engine"]) && $name != "") { + $result = $connection->query("SELECT 1 FROM " . idf_escape($table) . " WHERE " . implode(" AND ", $adminer->selectSearchProcess(fields($table), array())) . " LIMIT 1"); + if ($result->num_rows) { + if (!$found) { + echo "" : "

" . lang('No tables.')) . "\n"; +} diff --git a/todo.txt b/todo.txt index fb0a384c..fd0cc1ba 100644 --- a/todo.txt +++ b/todo.txt @@ -9,6 +9,7 @@ Variables editation, especially timezone Use event $intervals + microseconds in relative date functions Optionally check IP address Disable spell checking in SQL textareas - spellcheck="false" +Blob download and image display in edit form (important for Editor with hidden fields in select) ? Column and table names auto-completition in SQL textarea ? Aliasing of built-in functions can save 7 KB, function minification can save 7 KB, substitution of repetitive $a["a"] can save 4 KB, substitution of $_GET and friends can save 2 KB, JS packer can save 1 KB, not enclosing HTML attribute values can save 1.2 KB, replacing \\n by \n can save .3 KB ? Branch binary_compile: LZW compression of translations can save 30 KB, LZW compression of all texts can save 11 KB, remove of base64_decode() + using chars 127-255 in minification can save 1 KB