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
Original issue reported on code.google.com by
albrecht.andi
on 27 Jan 2010 at 2:37