File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,13 @@ Breaking changes
37
37
Textual column expressions
38
38
''''''''''''''''''''''''''
39
39
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::
46
43
47
44
session.query(Character.name, '_score')
48
45
49
- it should now be written like::
46
+ It must now be written like::
50
47
51
48
session.query(Character.name, sa.literal_column('_score'))
52
49
You can’t perform that action at this time.
0 commit comments