crate / sqlalchemy-cratedb

SQLAlchemy dialect for CrateDB.
https://cratedb.com/docs/sqlalchemy-cratedb/
Apache License 2.0
3 stars 2 forks source link

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

Open amotl opened 9 months ago

amotl commented 9 months ago

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:

(crate.client.exceptions.ProgrammingError) expected string or bytes-like object, got 'tuple'

The error message may be improved.

References