Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #36827 from m-kuhn/win_newlines
Fix windows newlines replacement in db manager query layer
  • Loading branch information
m-kuhn committed May 30, 2020
2 parents 51be73e + d8fa7e2 commit ffc5033
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 ffc5033

Please sign in to comment.