summaryrefslogtreecommitdiffstats
path: root/pgcli
diff options
context:
space:
mode:
authorRishi Ramraj <thereisnocowlevel@gmail.com>2018-05-15 10:45:36 -0400
committerRishi Ramraj <thereisnocowlevel@gmail.com>2018-05-15 10:45:36 -0400
commit3425766deaf9715df107802ddf187c1e5aa46577 (patch)
treece49313bcf0b0d04c4c5e0aa2471513344fa2dfe /pgcli
parenta1d9b8a7ccce88310c8ad4f7d6bac00d3427ec65 (diff)
Code review fixes
Diffstat (limited to 'pgcli')
-rw-r--r--pgcli/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index 6429a5c5..e8a64503 100644
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -476,6 +476,8 @@ class PGCli(object):
def execute_command(self, text):
logger = self.logger
+ query = MetaQury(query=text, successful=False)
+
try:
output, query = self._evaluate_command(text)
except KeyboardInterrupt:
@@ -570,7 +572,7 @@ class PGCli(object):
if self.watch_command:
while self.watch_command:
try:
- query = self.execute_command(self.watch_commandy)
+ query = self.execute_command(self.watch_command)
click.echo(
'Waiting for {0} seconds before repeating'
.format(timing))