andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
4 stars 2 forks source link

Result can't be displayed when result set contains unhashable types #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On PostgreSQL run: "select ARRAY[1, 2]"
2.
3.

What is the expected output? What do you see instead?

The result view should show the query results, but it fails silently 
instead:

Traceback (most recent call last):
  File "/storage/devel/cf/default/cf/ui/editor.py", line 214, in 
on_query_finished
    self.results.set_query(query)
  File "/storage/devel/cf/default/cf/ui/editor.py", line 943, in set_query
    self.grid.set_query(query)
  File "/storage/devel/cf/default/cf/ui/editor.py", line 1053, in set_query
    self.query.coding_hint)
  File "/storage/devel/cf/default/cf/ui/widgets/grid.py", line 499, in 
set_result
    self._setup_columns(rows)
  File "/storage/devel/cf/default/cf/ui/widgets/grid.py", line 106, in 
_setup_columns
    samples = set(rows[:sample_size])
TypeError: unhashable type: 'list'

Two things to fix here: 1) Internal errors should be reported in the UI; 2) 
That error shouldn't happen at all.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by albrecht.andi on 27 Jan 2010 at 2:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 2fd6bbd1fe.

Original comment by albrecht.andi on 27 Jan 2010 at 2:49