simonw / django-sql-dashboard

Django app for building dashboards using raw SQL queries
https://django-sql-dashboard.datasette.io/
Apache License 2.0
437 stars 37 forks source link

OSError: [Errno 63] File name too long #23

Closed simonw closed 3 years ago

simonw commented 3 years ago

Got this error for a SQL query that returned a large number of columns. Here's the culprit:

https://github.com/simonw/django-sql-dashboard/blob/d8a1f7dc177bbbb114c6a64673012f00fe257fa9/django_sql_dashboard/views.py#L119

simonw commented 3 years ago

I'm going to set a maximum length for this. It looks like 255 characters is the right value on macOS and Windows, I'll use that.