Open dotancohen opened 10 years ago
Likely related to issue #12.
The application also crashes if the SQL is legal but the table is not found:
>> q
query> select * from records;
Traceback (most recent call last):
File "./squeal.py", line 387, in <module>
main()
File "./squeal.py", line 167, in main
run_arbitrary_queries(query_prompt, conn, cursor)
File "./squeal.py", line 380, in run_arbitrary_queries
output_table_from_sql(conn, cursor, user_input)
File "./squeal.py", line 318, in output_table_from_sql
cursor.execute(sql, data)
File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'foo.records' doesn't exist")