Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes error in parameters of prepared statements during rewrite #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

larsyencken
Copy link

Fixes #23

The dependencies for this package are unpinned. sqlglot upstream changed their rewriting to do more, so this package now needs to do a little less.

This commit removes some rewriting that was failing with recent package versions, and pins sqlglot >= 21.2 in setup.py.

In doing so, it gets table display working again in Datasette.

Fixes cldellow#23

The dependencies for this package are unpinned. `sqlglot` upstream
changed their rewriting to do more, so this package now needs to do a
little less.

This commit removes some rewriting that was failing with recent package
versions, and pins `sqlglot` to `>=21.2` in `setup.py`.
@marcelgerber
Copy link

marcelgerber commented Aug 7, 2024

For more context, since I helped Lars on this: sqlglot is now rewriting :param to $param already (see PR: tobymao/sqlglot#2991) since version 21.2 (Feb 2024).

This means that datasette-parquet's parameter handling needs to take that into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Viewing tables gives 500 with error prepared statement needs 2 parameters
2 participants