The branch, master has been updated via 2410839251d72a6947d291f0174a85bcf9b53e53 (commit) from 2a754b25e44212a9d3cca035f29c86705ac8c2da (commit)
- Log ----------------------------------------------------------------- commit 2410839251d72a6947d291f0174a85bcf9b53e53 Author: Madhura Jayaratne madhura.cj@gmail.com 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