Various improvements to the NULL/DEFAULT handling in the data editor. Fixes #2399

This commit is contained in:
Surinder Kumar
2017-05-15 15:04:16 +01:00
committed by Dave Page
parent aa554eb767
commit d7d4bf475b
2 changed files with 94 additions and 21 deletions
+6 -1
View File
@@ -483,6 +483,8 @@ class TableCommand(GridCommand):
data_type=column_type,
pk_names=pk_names)
list_of_sql.append(sql)
# Reset column data
column_data = {}
# For updated rows
elif of_type == 'updated':
@@ -554,7 +556,10 @@ class TableCommand(GridCommand):
query_res[val]['result'] = 'Transaction ROLLBACK'
# If list is empty set rowid to 1
_rowid = list_of_rowid[i] if list_of_rowid else 1
try:
_rowid = list_of_rowid[i] if list_of_rowid else 1
except Exception:
_rowid = 0
return status, res, query_res, _rowid