We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 026a5c3 commit 4778d4fCopy full SHA for 4778d4f
src/views/results/html.ts
@@ -143,9 +143,13 @@ document.getElementById('resultset').onclick = function(e){
143
let bindings = [];
144
let updateStatement = 'UPDATE ' + updateTable.table + ' t SET t.' + chosenColumn + ' = ';
145
146
- if (newValue === 'null') {
+ if (chosenColumnDetail.maxInputLength >= 4 && newValue === 'null') {
147
+ // If the column can fit 'null', then set it to null value
148
updateStatement += 'NULL';
-
149
+ } else if (chosenColumnDetail.maxInputLength < 4 && newValue === '-') {
150
+ // If the column cannot fit 'null', then '-' is the null value
151
+ updateStatement += 'NULL';
152
+
153
} else {
154
switch (chosenColumnDetail.jsType) {
155
case 'number':
0 commit comments