Skip to content
Permalink
Browse files

Fix windows newlines replacement in db manager query layer

Fixes #36825
  • Loading branch information
m-kuhn authored and nyalldawson committed May 29, 2020
1 parent 4d7364c commit 1a0e35aa053cec6513fabb7ba1e69a91b00309aa
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/dlg_sql_window.py
@@ -62,7 +62,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 = []

0 comments on commit 1a0e35a

Please sign in to comment.
You can’t perform that action at this time.