瀏覽代碼

vdigit: fix testing empty input (#469)

Anna Petrasova 5 年之前
父節點
當前提交
0cbbabb936
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/dbmgr/dialogs.py

+ 1 - 1
gui/wxpython/dbmgr/dialogs.py

@@ -248,7 +248,7 @@ class DisplayAttributesDialog(wx.Dialog):
 
                     if newvalue != value:
                         updatedColumns.append(name)
-                        if not newvalue:
+                        if newvalue == '':
                             updatedValues.append('NULL')
                         else:
                             if ctype != str: