Merged
Conversation
When using Postgres 10 the `information_schema.columns.column_name` needs to be cast as text. Otherwise, an error is generated which states: ``` could not find array type for data type information_schema.sql_identifier ```
Fixed issue with Postgres 10
There was a missing space between the -m and venv that could lead to confusion for new contributors
Owner
|
Thanks for figuring this out! |
Owner
|
It would be great to have the GitHub Actions workflow run tests against multiple PostgreSQL versions to catch this kind of thing in the future https://github.com/simonw/django-sql-dashboard/blob/main/.github/workflows/test.yml |
Contributor
Author
|
@simonw no problem! Sorry if the commit history looks wonky. As I was working through the contribution guidelines I found a typo which I fixed, but had messed up all of the branches on my local version and was trying to undo and redo and ... well, it's a holiday Sunday and I think it's time I go enjoy time with my family! Cheers! |
simonw
pushed a commit
that referenced
this pull request
Jul 6, 2021
* Fixed issue with Postgres 10 When using Postgres 10 the `information_schema.columns.column_name` needs to be cast as text. Otherwise, an error is generated which states: ``` could not find array type for data type information_schema.sql_identifier ``` * Fixed typo There was a missing space between the -m and venv that could lead to confusion for new contributors
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using version 1.0 on Ubuntu 18.04 with Postgres 10.17 an Internal Server (500) error is generated.
I traced this back to the change made for version 1.0 on line 162 (see compared diff here)
The
array_aggwill throw the errorcasting the
column_namefield to text resolves this issue for Postgres 10.I did run the tests locally and 88 passed with 2 warnings. The warnings were: