From 7555e2731d2b018064d6c2f340b9d097a295ccf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lehdermann=20Silveira?= <80284411+AndreSilveiraAzion@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:26:34 -0300 Subject: [PATCH] fix: removed strip operation from sql command read from file. (#91) --- commands/read_file.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/read_file.py b/commands/read_file.py index 91b4a96..422fb75 100644 --- a/commands/read_file.py +++ b/commands/read_file.py @@ -28,8 +28,6 @@ def fetch_sql_commands_from_file(file, limit, offset): if not line: break - line = line.strip() - if line.upper() in ['BEGIN TRANSACTION;', 'COMMIT;']: continue @@ -54,7 +52,7 @@ def fetch_sql_commands_from_file(file, limit, offset): command += char if char == ';' and not in_string: - commands.append(command.strip()) + commands.append(command) command = "" if len(commands) >= limit: