summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith@newrelic.com>2014-12-14 12:40:35 -0800
committerAmjith Ramanujam <amjith@newrelic.com>2014-12-14 12:40:35 -0800
commit32fbc42b28c13c88f8cb1fc4a1b49bf7b6b2cb2a (patch)
tree79a3f52da4a7af8c01ce7cbcbc12552bf60c2bd2
parentf61a9788003d091cd38d38326ad1ca7969dcf712 (diff)
Fix :q to quit.
-rw-r--r--pgcli/pgline.py1
-rw-r--r--sanity_checks.txt6
2 files changed, 7 insertions, 0 deletions
diff --git a/pgcli/pgline.py b/pgcli/pgline.py
index 399c2300..e231f33e 100644
--- a/pgcli/pgline.py
+++ b/pgcli/pgline.py
@@ -26,5 +26,6 @@ def _multiline_exception(text):
text.endswith(';') or # Ended with a semi-colon
(text == 'exit') or # Exit doesn't need semi-colon
(text == 'quit') or # Quit doesn't need semi-colon
+ (text == ':q') or # To all the vim fans out there
(text == '') # Just a plain enter without any text
)
diff --git a/sanity_checks.txt b/sanity_checks.txt
index 899c4c9d..bc1dad7f 100644
--- a/sanity_checks.txt
+++ b/sanity_checks.txt
@@ -16,6 +16,12 @@
* \c amjith
* \q
+* Simple execution:
+ 1 Execute a simple 'select * from users;' test taht will pass.
+ 2 Execute a syntax error: 'insert into users ( ;'
+ 3 Execute a simple test from step 1 again to see if it still passes.
+ * Change the database and try steps 1 - 3.
+
* Test smart-completion
* Sele - Must auto-complete to SELECT
* SELECT * FROM - Must list the table names.