The branch, master has been updated
       via  2410839251d72a6947d291f0174a85bcf9b53e53 (commit)
      from  2a754b25e44212a9d3cca035f29c86705ac8c2da (commit)


- Log -----------------------------------------------------------------
commit 2410839251d72a6947d291f0174a85bcf9b53e53
Author: Madhura Jayaratne <[email protected]>
Date:   Fri Feb 18 11:47:42 2011 +0530

    Should be NULL, not 'NULL'

-----------------------------------------------------------------------

Summary of changes:
 js/sql.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/js/sql.js b/js/sql.js
index fd38843..8173b5e 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -649,9 +649,10 @@ $(document).ready(function() {
         for (var key in params_to_submit) {
                value = params_to_submit[key];
                if (value.length == 0) {
-                       value = 'NULL';
+                       sql_query += ' ' + key + "=NULL, ";
+               } else {
+                       sql_query += ' ' + key + "='" + value.replace(/'/g, 
"''") + "' , ";
                }
-               sql_query += ' ' + key + "='" + value.replace(/'/g, "''") + "' 
, ";
         }
         //Remove the last ',' appended in the above loop
         sql_query = sql_query.replace(/,\s$/, '');


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to