summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarel Ben-Attia <harelba@gmail.com>2014-10-23 07:57:45 -0400
committerHarel Ben-Attia <harelba@gmail.com>2014-10-23 07:57:45 -0400
commit1244a5c5949632daa658c8ffcdb1b931b038295d (patch)
tree28d78472e1f10ee589caf19dc4bc6f72cbe544eb
parent39390417a0072ebc4494401c85b1d2bc8792ac96 (diff)
Support for SELECT statements without a table, allowing things such as SELECT 5+8 and such
-rwxr-xr-xbin/q6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/q b/bin/q
index 2856a19..970e014 100755
--- a/bin/q
+++ b/bin/q
@@ -1105,4 +1105,8 @@ except IOError, e:
pass
-table_creator.drop_table()
+try:
+ table_creator.drop_table()
+except:
+ # Support no-table select queries
+ pass