Update changelog, fix failing crdb sql test.

This commit is contained in:
Charles Leifer
2026-03-24 21:32:12 -05:00
parent 071d0a0362
commit eda231b047
2 changed files with 18 additions and 0 deletions
+15
View File
@@ -7,6 +7,21 @@ https://github.com/coleifer/peewee/releases
## master
* Refactor test suite - this was a mechanical refactor, just moving things
around and trying to group things more clearly. Also added new tests covering
some gaps.
* Expand multi-value types to include generator expressions, so you can write
stuff like `.in(a for a in iterable if cond)`.
* Ensure quotes embedded in entity names are escaped.
* Improved specification of `FOR UPDATE` clauses.
* Fix for negative values in `paginate()` method.
* Fix for newer MySQL server versions in feature detection code.
* More robust handling of unusual aliases / invalid attr names in cursor
wrapper.
* Better handling of duplicated column names in cursor wrapper implementations.
* Improve performance of ModelCursorWrapper when reconstructing model instance
graphs after multi-table selects.
[View commits](https://github.com/coleifer/peewee/compare/4.0.2...master)
## 4.0.2
+3
View File
@@ -25,7 +25,9 @@ from peewee import ModelIndex
from .base import get_in_memory_db
from .base import requires_pglike
from .base import skip_if
from .base import BaseTestCase
from .base import IS_CRDB
from .base import ModelDatabaseTestCase
from .base import TestModel
from .base import __sql__
@@ -1543,6 +1545,7 @@ class TestOnConflictSQL(ModelDatabaseTestCase):
'WHERE ("ukvp"."extra" < ?) '
'RETURNING "ukvp"."id"'), ['k1', 1, 10, 100])
@skip_if(IS_CRDB)
def test_on_conflict_named_constraint(self):
query = (UKVP
.insert(key='k1', value=1)