Arguments such as cipher, kdf_iter, cipher_page_size and
cipher_use_hmac may (always?) require quotes within the
PRAGMA directive.
Change-Id: I2c808f34e1c44f0593b72b304e170e4af0a6035a
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/319
.. changelog::
:version: 1.1.4
+ .. change::
+ :tags: bug, sqlite
+
+ Added quotes to the PRAGMA directives in the pysqlcipher dialect
+ to support additional cipher arguments appropriately. Pull request
+ courtesy Kevin Jurczyk.
+
.. change::
:tags: bug, postgresql
:tickets: 3846, 3807
conn.execute('pragma key="%s"' % passphrase)
for prag, value in pragmas.items():
if value is not None:
- conn.execute('pragma %s=%s' % (prag, value))
+ conn.execute('pragma %s="%s"' % (prag, value))
return conn