Skip to content

Commit 187a11d

Browse files
committed
fixup! SA14: Final adjustments to the changelog
1 parent 00d016e commit 187a11d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

CHANGES.txt

+4-7
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,13 @@ Breaking changes
3737
Textual column expressions
3838
''''''''''''''''''''''''''
3939

40-
SQLAlchemy 1.4 became stricter on some details. Where it was ok to use a
41-
textual column expression in *plain text* beforehand, a
42-
`SQLAlchemy literal_column`_ type should be used now. This specifically
43-
applies to `CrateDB system columns`_ like ``_score``.
44-
45-
For example, when a query might have looked like this beforehand::
40+
SQLAlchemy 1.4 became stricter on some details. It requires to wrap `CrateDB
41+
system columns`_ like ``_score`` in a `SQLAlchemy literal_column`_ type.
42+
Before, it was possible to use a query like this::
4643

4744
session.query(Character.name, '_score')
4845

49-
it should now be written like::
46+
It must now be written like::
5047

5148
session.query(Character.name, sa.literal_column('_score'))
5249

0 commit comments

Comments
 (0)