Should be NULL, not 'NULL'

This commit is contained in:
Madhura Jayaratne
2011-02-18 11:47:42 +05:30
parent 2a754b25e4
commit 2410839251

View File

@@ -649,10 +649,11 @@ $(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, "''") + "' , ";
}
}
//Remove the last ',' appended in the above loop
sql_query = sql_query.replace(/,\s$/, '');
sql_query += ' WHERE ' + PMA_urldecode(where_clause);