Merge pull request #4320 from APriestman/skipSetIdleLine

Skip SET idle_in_transaction_session_timeout line in regression test
This commit is contained in:
Richard Cordovano 2018-11-30 11:25:21 -05:00 committed by GitHub
commit ff50219b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,7 +333,7 @@ class TskDbDiff(object):
for line in postgreSQL_db: for line in postgreSQL_db:
line = line.strip('\r\n ') line = line.strip('\r\n ')
# Deal with pg_dump result file # Deal with pg_dump result file
if line.startswith('--') or line.lower().startswith('alter') or "pg_catalog" in line or not line: # It's comment or alter statement or catalog entry or empty line if line.startswith('--') or line.lower().startswith('alter') or "pg_catalog" in line or "idle_in_transaction_session_timeout" in line or not line: # It's comment or alter statement or catalog entry or set idle entry or empty line
continue continue
elif not line.endswith(';'): # Statement not finished elif not line.endswith(';'): # Statement not finished
dump_line += line dump_line += line