[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA4-1102-g519e7b3
Madhura Jayaratne
madhuracj at users.sourceforge.net
Thu Mar 31 21:11:44 CEST 2011
The branch, master has been updated
via 519e7b39e1997273a2ecd7b15089db0ca1e9e7c1 (commit)
from 0762bddfd122c9e8995717685411c32e21ebfe18 (commit)
- Log -----------------------------------------------------------------
commit 519e7b39e1997273a2ecd7b15089db0ca1e9e7c1
Author: Madhura Jayaratne <madhura.cj at gmail.com>
Date: Fri Apr 1 00:41:10 2011 +0530
Bug #3243672 Inline Edit - SQL syntax error #1064 - comma-separated field.
And surround table name and field name with quotes.
-----------------------------------------------------------------------
Summary of changes:
js/sql.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/js/sql.js b/js/sql.js
index 5b8081e..21dc660 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -635,7 +635,7 @@ $(document).ready(function() {
/**
* @var sql_query String containing the SQL query used to retrieve value of truncated/transformed data
*/
- var sql_query = 'SELECT ' + field_name + ' FROM ' + window.parent.table + ' WHERE ' + where_clause;
+ var sql_query = 'SELECT `' + field_name + '` FROM `' + window.parent.table + '` WHERE ' + PMA_urldecode(where_clause);
// Make the Ajax call and get the data, wrap it and insert it
$.post('sql.php', {
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list