Merge pull request #6697 from chrismeyersfsu/fix-collection_tests

ensure last comma removed in select
This commit is contained in:
Ryan Petrello
2020-04-14 11:05:29 -04:00
committed by GitHub

View File

@@ -36,6 +36,8 @@ def sqlite_copy_expert(request):
for line in sql.split('\n'):
if line.find('main_jobevent.event_data::') == -1:
sql_new.append(line)
elif not line.endswith(','):
sql_new[-1] = sql_new[-1].rstrip(',')
sql = '\n'.join(sql_new)
self.execute(sql)