Closed matthew-a-dunlap closed 2 years ago
Definitely a bug!
Looks like this replicates the bug:
select ARRAY[now()]
Or this:
select TIMESTAMP WITH TIME ZONE '2004-10-19 10:23:54+02'
This works and returns a column called timestamptz
containing 2004-10-19 08:23:54+00:00
.
This does not work:
select ARRAY[TIMESTAMP WITH TIME ZONE '2004-10-19 10:23:54+02']
This is the code causing the error: https://github.com/simonw/django-sql-dashboard/blob/ea3c2bebeb9b4d567991840f8046f18d9d0ffab8/django_sql_dashboard/utils.py#L53-L56
OK, fix is out in 1.0.2: https://github.com/simonw/django-sql-dashboard/releases/tag/1.0.2
Awesome! Thanks so much :)
Hello!
This project is great. I've run into an issue though. I was trying to run this (unfinished) query:
The problem is that django-sql-dashboard errors out because it doesn't know how to serialize the
s.updated_at
DateTime field for working witharray_agg
.As far as I could tell the only way to fix this would be to fork the codebase? Am I missing something? Thanks!