Skip to content

Commit

Permalink
fix: removed strip operation from sql command read from file. (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreSilveiraAzion authored Oct 8, 2024
1 parent 0445483 commit 7555e27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions commands/read_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 7555e27

Please sign in to comment.