mirror of
https://github.com/coleifer/peewee.git
synced 2026-05-06 07:56:41 -04:00
Update changelog, fix failing crdb sql test.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user