Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Przybylski <piotrprz@gmail.com>2011-08-16 02:04:44 +0400
committerPiotr Przybylski <piotrprz@gmail.com>2011-08-16 02:04:44 +0400
commite2eb8a28dad7d07ab24c84685d388d4b230a4f92 (patch)
tree25deaf07282965e2ed04968da1a0779c0d2c8848 /tbl_tracking.php
parent2704835c4aea9abae0fb8836f98cce7809927b1d (diff)
PMA_backquote is not needed for string literals
Diffstat (limited to 'tbl_tracking.php')
-rw-r--r--tbl_tracking.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tbl_tracking.php b/tbl_tracking.php
index 76ed16ab33..b601348ea4 100644
--- a/tbl_tracking.php
+++ b/tbl_tracking.php
@@ -575,8 +575,8 @@ if (isset($_REQUEST['report']) || isset($_REQUEST['report_export'])) {
$sql_query = " SELECT DISTINCT db_name, table_name FROM " .
PMA_backquote($GLOBALS['cfg']['Server']['pmadb']) . "." .
PMA_backquote($GLOBALS['cfg']['Server']['tracking']) .
- " WHERE " . PMA_backquote('db_name') . " = '" . PMA_sqlAddSlashes($GLOBALS['db']) . "' " .
- " ORDER BY ". PMA_backquote('db_name') . ", " . PMA_backquote('table_name');
+ " WHERE db_name = '" . PMA_sqlAddSlashes($GLOBALS['db']) . "' " .
+ " ORDER BY db_name, table_name";
$sql_result = PMA_query_as_controluser($sql_query);
@@ -615,9 +615,9 @@ if (PMA_DBI_num_rows($sql_result) > 0) {
$sql_query = " SELECT * FROM " .
PMA_backquote($GLOBALS['cfg']['Server']['pmadb']) . "." .
PMA_backquote($GLOBALS['cfg']['Server']['tracking']) .
- " WHERE " . PMA_backquote('db_name') . " = '" . PMA_sqlAddSlashes($_REQUEST['db']) . "' ".
- " AND " . PMA_backquote('table_name') . " = '" . PMA_sqlAddSlashes($_REQUEST['table']) ."' ".
- " ORDER BY ". PMA_backquote('version') . " DESC ";
+ " WHERE db_name = '" . PMA_sqlAddSlashes($_REQUEST['db']) . "' ".
+ " AND table_name = '" . PMA_sqlAddSlashes($_REQUEST['table']) ."' ".
+ " ORDER BY version DESC ";
$sql_result = PMA_query_as_controluser($sql_query);