summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHarel Ben-Attia <harelba@gmail.com>2016-11-03 11:34:24 +0200
committerHarel Ben-Attia <harelba@gmail.com>2016-11-03 11:34:24 +0200
commite4f8044520215ed74aa58966b750a80769c16342 (patch)
treef82850905728778287e7f5759cb8bab58c16b1fe /bin
parentf6dcb5e7424d9805ddef5031eb1eca0ede5b50ce (diff)
Fixed bug with handling of null values in relaxed mode, exposed by #126
Also fix unrelated tests
Diffstat (limited to 'bin')
-rwxr-xr-xbin/q4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/q b/bin/q
index 49be953..8cecec5 100755
--- a/bin/q
+++ b/bin/q
@@ -887,8 +887,8 @@ class TableCreator(object):
if self.mode == 'relaxed':
if actual_col_count > expected_col_count:
xxx = col_vals[:expected_col_count - 1] + \
- [self.input_delimiter.join(
- col_vals[expected_col_count - 1:])]
+ [self.input_delimiter.join([v if v is not None else '' for v in
+ col_vals[expected_col_count - 1:]])]
return xxx
else:
return col_vals