summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrina Truong <i.chernyavska@gmail.com>2018-06-06 12:21:07 -0700
committerGitHub <noreply@github.com>2018-06-06 12:21:07 -0700
commit9d2f11164c6c3a30c882cc418c69b114cdef6f8a (patch)
tree159f29057e88c3e1667bdf48c66adbc298f788e3
parent4505332fe53ebea0197e30efe66418f0fc92adbe (diff)
parent99338e3e27b3466d72b66d52d82007a00169eb15 (diff)
Merge pull request #895 from gma2th/hotfix/not-enough-values-to-unpack
Hotfix/not enough values to unpack
-rw-r--r--AUTHORS1
-rw-r--r--changelog.rst2
-rw-r--r--pgcli/pgexecute.py2
3 files changed, 4 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index df481086..16f76a79 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -79,6 +79,7 @@ Contributors:
* Catherine Devlin
* Jason Ribeiro
* Rishi Ramraj
+ * Matthieu Guilbert
Creator:
diff --git a/changelog.rst b/changelog.rst
index 951af754..4fe768cf 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -21,6 +21,7 @@ Bug Fixes:
* Don't offer to reconnect when we can't change a param in realtime (#807). (Thanks: `Amjith Ramanujam`_)
* Make keyring optional. (Thanks: `Dick Marinus`_)
* Fix ipython magic connection (#891). (Thanks: `Irina Truong`_)
+* Fix not enough values to unpack. (Thanks: `Matthieu Guilbert`_)
1.9.1:
======
@@ -831,3 +832,4 @@ Improvements:
.. _`Frederic Aoustin`: https://github.com/fraoustin
.. _`Jason Ribeiro`: https://github.com/jrib
.. _`Rishi Ramraj`: https://github.com/RishiRamraj
+.. _`Matthieu Guilbert`: https://github.com/gma2th
diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py
index 0d6195e0..149efc51 100644
--- a/pgcli/pgexecute.py
+++ b/pgcli/pgexecute.py
@@ -292,7 +292,7 @@ class PGExecute(object):
# Remove spaces and EOL
statement = statement.strip()
if not statement: # Empty string
- yield (None, None, None, None, statement, False)
+ yield (None, None, None, None, statement, False, False)
# Split the sql into separate queries and run each one.
for sql in sqlparse.split(statement):