bchtipbot
bchtipbot copied to clipboard
Bump peewee from 3.14.3 to 3.17.6
Bumps peewee from 3.14.3 to 3.17.6.
Release notes
Sourced from peewee's releases.
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
Fixes package installation issue on 3.12 and newer introduced in the last version.
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).
3.17.3
- Better fix for #2871 (extraneous queries when coercing query to list), and new fix in #2872 for regression in truthiness of cursor.
3.17.2
- Full support for
psycopg3
.- Basic support for Sqlite
jsonb
.- Fix bug where calling
list(query)
resulted in extra queries, #28713.17.1
- Add bitwise and other helper methods to
BigBitField
, #2802.- Add
add_column_default
anddrop_column_default
migrator methods for specifying a server-side default value, #2803.- The new
star
attribute was causing issues for users who had a field named star on their models. This attribute is now renamed to__star__
. #2796.- Fix compatibility issues with 3.12 related to utcnow() deprecation.
- Add stricter locking on connection pool to prevent race conditions.
- Add adapters and converters to Sqlite to replace ones deprecated in 3.12.
- Fix bug in
model_to_dict()
when only aliases are present.- Fix version check for Sqlite native drop column support.
- Do not specify a
reconnect=
argument toping()
if using MySQL 8.x.3.17.0
- Only roll-back in the outermost
@db.transaction
decorator/ctx manager if an unhandled exception occurs. Previously, an unhandled exception that occurred in a nestedtransaction
context would trigger a rollback. The use of nestedtransaction
has long been discouraged in the documentation: the recommendation is to always usedb.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
indb.atomic()
anddb.transaction()
when using Postgres and MySQL/MariaDB, which will apply to the wrapped transaction. Note: Sqlite has supported a similarlock_type
parameter for some time.
... (truncated)
Changelog
Sourced from peewee's changelog.
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
This release fixes a build system problem in Python 3.12, #2891.
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).
3.17.3
- Better fix for #2871 (extraneous queries when coercing query to list), and
3.17.2
- Full support for
psycopg3
.- Basic support for Sqlite
jsonb
.- Fix bug where calling
list(query)
resulted in extra queries, #28713.17.1
... (truncated)
Commits
0b16576
3.17.62b2e876
Update pool as well.49ba1cc
Fix change in how we access TransactionStatus enum in psycopg3.09a1f78
Switch to single quotes when generating constraints in reflection dflts.4c4b788
Ensure subqueries used as CASE targets are not aliased.415384d
Disable sqlcipher logging in tests.f6eb4c7
Doc for SubclassAwareMetadata.f18e3a0
Better fix for #2901 using a no-op comparable in the heap.8182d2a
Re-add the random jitter in case time.time() returns identical values.c6f4c4d
Fix ServerSide query regression introduced in 3.16.0- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)