diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-06-15 10:12:01 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-06-15 10:12:01 +0300 |
commit | 04435798b1cd2db6d2abcd50d61d1d529ed4a486 (patch) | |
tree | ab46e98fc2c18943d717597e3ba4e8a417a89f8c /js/pmd | |
parent | 61cf42ac101042fb2259781f0dd51753c4beb520 (diff) |
Use backquotes. Consistently skip using db name
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/pmd')
-rw-r--r-- | js/pmd/history.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/pmd/history.js b/js/pmd/history.js index 77364617fc..ce2db1737f 100644 --- a/js/pmd/history.js +++ b/js/pmd/history.js @@ -653,7 +653,7 @@ function query_from() from_array = unique(from_array); tab_left = from_array; temp = tab_left.shift(); - quer = temp; + quer = '`' + temp + '`'; tab_used.push(temp); // if master table (key2) matches with tab used get all keys and check if tab_left matches // after this check if master table (key2) matches with tab left then check if any foreign matches with master . @@ -667,7 +667,7 @@ function query_from() parts1 = contr[K][key][key2][key3][0].split("."); if (found(tab_left, parts1[1]) > 0) { query += "\n" + 'LEFT JOIN '; - query += '`' + parts1[0] + '`.`' + parts1[1] + '` ON '; + query += '`' + parts1[1] + '` ON '; query += '`' + parts[1] + '`.`' + key3 + '` = '; query += '`' + parts1[1] + '`.`' + contr[K][key][key2][key3][1] + '` '; t_tab_left.push(parts1[1]); @@ -691,7 +691,7 @@ function query_from() parts1 = contr[K][key][key2][key3][0].split("."); if (found(tab_used, parts1[1]) > 0) { query += "\n" + 'LEFT JOIN '; - query += '`' + parts[0] + '`.`' + parts[1] + '` ON '; + query += '`' + parts[1] + '` ON '; query += '`' + parts1[1] + '`.`' + contr[K][key][key2][key3][1] + '` = '; query += '`' + parts[1] + '`.`' + key3 + '` '; t_tab_left.push(parts[1]); |