From 03633a6462ee16a1348acb98fe0323c74eb9ba85 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 6 Jun 2021 10:12:05 -0400 Subject: Pass URL object, not the string, to on_connect_url The fix for pysqlcipher released in version 1.4.3 :ticket:`5848` was unfortunately non-working, in that the new ``on_connect_url`` hook was erroneously not receiving a ``URL`` object under normal usage of :func:`_sa.create_engine` and instead received a string that was unhandled; the test suite failed to fully set up the actual conditions under which this hook is called. This has been fixed. Fixes: #6586 Change-Id: I3bf738daec35877a10fdad740f08dca9e7420829 --- lib/sqlalchemy/dialects/sqlite/pysqlcipher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/sqlite') diff --git a/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py b/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py index ff02d4dee..1a9337671 100644 --- a/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py +++ b/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py @@ -9,7 +9,7 @@ .. dialect:: sqlite+pysqlcipher :name: pysqlcipher :dbapi: sqlcipher 3 or pysqlcipher - :connectstring: sqlite+pysqlcipher://:passphrase/file_path[?kdf_iter=] + :connectstring: sqlite+pysqlcipher://:passphrase@/file_path[?kdf_iter=] Dialect for support of DBAPIs that make use of the `SQLCipher `_ backend. -- cgit v1.2.1