Releases: coleifer/peewee
Releases Β· coleifer/peewee
3.18.1
3.18.0
The behavior of postgresql_ext.BinaryJSONField.contains()
has changed.
Previously, passing a string to this method would perform a JSON key exists
check (?
operator) instead of JSON contains (@>
operator). As of 3.18.0,
this special-case has been removed and the contains()
method always uses
the JSONB contains operator (@>
). For the old behavior of checking
whether a key exists, use the BinaryJSONField.has_key()
method. See #2984 for
discussion.
- Add options to URL-unquote user and password when using the
db_url
helpers, see #2974 for discussion. - Support using
postgresql://
URLs when connecting to psycopg3.
3.17.9
- Fix incorrect handling of fk constraint name in migrator.
- Fix test-only issue that can occur in Python 3.14a4.
3.17.8
3.17.7
- Add db_url support for psycopg3 via
psycopg3://
. - Ensure double-quotes are escaped properly when introspecting constraints.
- A few documentation-related fixes.
3.17.6
- Fix bug in recursive
model.delete_instance()
when a table contains foreign-keys at multiple depths of the graph, #2893. - Fix regression in pool behavior on systems where
time.time()
returns identical values for two connections. This adds a no-op comparable sentinel to the heap to prevent any recurrence of this problem, #2901. - Ensure that subqueries inside
CASE
statements generate correct SQL. - Fix regression that broke server-side cursors with Postgres (introduced in 3.16.0).
- Fix to ensure compatibility with psycopg3 - the libpq TransactionStatus constants are no longer available on the
Connection
instance. - Fix quoting issue in pwiz that could generate invalid python code for double-quoted string literals used as column defaults.
3.17.5
3.17.4
- Fix bug that could occur when using CASE inside a function, and one or more of the CASE clauses consisted of a subquery. Refs #2873. new fix in #2872 for regression in truthiness of cursor.
- Fix bug in the conversion of TIMESTAMP type in Sqlite on Python 3.12+.
- Fix for hybrid properties on subclasses when aliased (#2888).
- Many fixes for SqliteQueueDatabase (#2874, #2876, #2877).