crate / crate/sqlalchemy-cratedb

SQLAlchemy: Improve error message when using `schema` query parameter twice

Open
#82 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9
Forks
4
Avg merge
6d 12h
Merged PRs (30d)
3

Description

### Problem

When approaching the CrateDB SQLAlchemy dialect with an erroneous connection string including the `schema` query parameter twice, like `crate://localhost/?schema=foo&schema=bar`, it fails using this exception message:
```python
(crate.client.exceptions.ProgrammingError) expected string or bytes-like object, got 'tuple'
```

The error message may be improved.

### References

- https://github.com/crate/cratedb-examples/pull/174#pullrequestreview-1761390511

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.