You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
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).
Only roll-back in the outermost @db.transaction decorator/ctx manager if
an unhandled exception occurs. Previously, an unhandled exception that
occurred in a nested transaction context would trigger a rollback. The use
of nested transaction has long been discouraged in the documentation: the
recommendation is to always use db.atomic, which will use savepoints to
properly handle nested blocks. However, the new behavior should make it
easier to reason about transaction boundaries - see #2767 for discussion.
Cover transaction BEGIN in the reconnect-mixin. Given that no transaction
has been started, reconnecting when beginning a new transaction ensures that
a reconnect will occur if it is safe to do so.
Add support for setting isolation_level in db.atomic() and db.transaction() when using Postgres and MySQL/MariaDB, which will apply to
the wrapped transaction. Note: Sqlite has supported a similar lock_type
parameter for some time.
Add support for the Sqlite SQLITE_DETERMINISTIC function flag. This allows
user-defined Sqlite functions to be used in indexes and may be used by the
query planner.
Fix unreported bug in dataset import when inferred field name differs from
column name.
Add flag to ManyToManyField to prevent setting/getting values on unsaved
instances. This is worthwhile, since reading or writing a many-to-many has no
meaning when the instance is unsaved.
Adds a star() helper to Source base-class for selecting all columns.
Fix missing binary types for mysql-connector and mariadb-connector.
Add extract() method to MySQL JSONField for extracting a jsonpath.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.16.2->==3.18.3Release Notes
coleifer/peewee (peewee)
v3.18.3Compare Source
View commits
v3.18.2Compare Source
Cython 3.1 removes some Python 2 stuff we referenced -- this resolves the
issue. Couple other very minor fixes.
View commits
v3.18.1Compare Source
@pypa is such a bunch of clowns. I swear.
View commits
v3.18.0Compare Source
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 usesthe JSONB contains operator (
@>). For the old behavior of checkingwhether a key exists, use the
BinaryJSONField.has_key()method. See #2984 fordiscussion.
db_urlhelpers,see #2974 for discussion.
postgresql://URLs when connecting to psycopg3.View commits
v3.17.9Compare Source
View commits
v3.17.8Compare Source
delete_instance()when traversing nullableforeign-keys, #2952. Introduced in 3.17.6. Recommended that you update.
refs #2941.
v3.17.7Compare Source
psycopg3://.View commits
v3.17.6Compare Source
model.delete_instance()when a table containsforeign-keys at multiple depths of the graph, #2893.
time.time()returnsidentical values for two connections. This adds a no-op comparable sentinel
to the heap to prevent any recurrence of this problem, #2901.
CASEstatements generate correct SQL.3.16.0).
constants are no longer available on the
Connectioninstance.double-quoted string literals used as column defaults.
View commits
v3.17.5Compare Source
This release fixes a build system problem in Python 3.12, #2891.
View commits
v3.17.4Compare Source
of the CASE clauses consisted of a subquery. Refs #2873.
new fix in #2872 for regression in truthiness of cursor.
View commits
v3.17.3Compare Source
View commits
v3.17.2Compare Source
psycopg3.jsonb.list(query)resulted in extra queries, #2871View commits
v3.17.1Compare Source
BigBitField, #2802.add_column_defaultanddrop_column_defaultmigrator methods forspecifying a server-side default value, #2803.
starattribute was causing issues for users who had a field namedstar on their models. This attribute is now renamed to
__star__. #2796.model_to_dict()when only aliases are present.reconnect=argument toping()if using MySQL 8.x.View commits
v3.17.0Compare Source
@db.transactiondecorator/ctx manager ifan unhandled exception occurs. Previously, an unhandled exception that
occurred in a nested
transactioncontext would trigger a rollback. The useof nested
transactionhas long been discouraged in the documentation: therecommendation is to always use
db.atomic, which will use savepoints toproperly handle nested blocks. However, the new behavior should make it
easier to reason about transaction boundaries - see #2767 for discussion.
BEGINin the reconnect-mixin. Given that no transactionhas been started, reconnecting when beginning a new transaction ensures that
a reconnect will occur if it is safe to do so.
isolation_levelindb.atomic()anddb.transaction()when using Postgres and MySQL/MariaDB, which will apply tothe wrapped transaction. Note: Sqlite has supported a similar
lock_typeparameter for some time.
SQLITE_DETERMINISTICfunction flag. This allowsuser-defined Sqlite functions to be used in indexes and may be used by the
query planner.
column name.
View commits
v3.16.3Compare Source
ManyToManyFieldto prevent setting/getting values on unsavedinstances. This is worthwhile, since reading or writing a many-to-many has no
meaning when the instance is unsaved.
star()helper toSourcebase-class for selecting all columns.binarytypes for mysql-connector and mariadb-connector.extract()method to MySQLJSONFieldfor extracting a jsonpath.View commits
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.