summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Ceccarelli <ridleys@gmail.com>2021-11-18 21:58:38 +0200
committerGitHub <noreply@github.com>2021-11-18 11:58:38 -0800
commit5811515a969b84d7d055585cf2c25208b5881565 (patch)
treec2fdb9cef6c8116b75f168ebe7ebccef47b9959e
parent123e00a086d91281a2ed8cfd84452a796f22ad91 (diff)
no need to strip_comments (#1296)
-rw-r--r--pgcli/pgexecute.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py
index a013b558..22e9ea46 100644
--- a/pgcli/pgexecute.py
+++ b/pgcli/pgexecute.py
@@ -430,7 +430,7 @@ class PGExecute:
for sql in sqlparse.split(statement):
# Remove spaces, eol and semi-colons.
sql = sql.rstrip(";")
- sql = sqlparse.format(sql, strip_comments=True).strip()
+ sql = sqlparse.format(sql, strip_comments=False).strip()
if not sql:
continue
try: