Skip to content

Commit

Permalink
Fix windows newlines replacement in db manager query layer
Browse files Browse the repository at this point in the history
Fixes #36825
  • Loading branch information
m-kuhn committed May 29, 2020
1 parent da21127 commit d8fa7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -77,7 +77,7 @@

def check_comments_in_sql(raw_sql_input):
lines = []
for line in raw_sql_input.split('\n'):
for line in raw_sql_input.splitlines():
if not line.strip().startswith('--'):
if '--' in line:
comment_positions = []
Expand Down

0 comments on commit d8fa7e2

Please sign in to comment.