Changeset: 14b5f98cb257 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=14b5f98cb257
Modified Files:
        testing/mktest.py
        testing/sqllogictest.py
Branch: mtest
Log Message:

Fix for a too eager change.


diffs (24 lines):

diff --git a/testing/mktest.py b/testing/mktest.py
--- a/testing/mktest.py
+++ b/testing/mktest.py
@@ -117,7 +117,7 @@ def convertresult(columns, data):
                 else:
                     nrow.append('%d' % row[i])
             elif columns[i] == 'T':
-                if not row[i]:
+                if row[i] == '' or row[i] == b'':
                     nrow.append('(empty)')
                 else:
                     nval = []
diff --git a/testing/sqllogictest.py b/testing/sqllogictest.py
--- a/testing/sqllogictest.py
+++ b/testing/sqllogictest.py
@@ -131,7 +131,7 @@ class SQLLogic:
                     else:
                         nrow.append('%d' % row[i])
                 elif columns[i] == 'T':
-                    if not row[i]:
+                    if row[i] == '' or row[i] == b'':
                         nrow.append('(empty)')
                     else:
                         nval = []
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to