We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e82fde commit b3c65d5Copy full SHA for b3c65d5
README.md
@@ -112,6 +112,20 @@ decimal values without the possibility of data loss.
112
113
Spanner doesn't have these functions.
114
115
+### Computations that yield FLOAT64 values can't be assigned to INT64 columns
116
+
117
+Spanner [doesn't support this](https://github.com/googleapis/python-spanner-django/issues/331).
118
119
+For example, if `integer` is `IntegerField`:
120
121
+```
122
+>>> ExampleModel.objects.update(integer=F('integer') / 2)
123
+...
124
+django.db.utils.ProgrammingError: 400 Value of type FLOAT64 cannot be
125
+assigned to integer, which has type INT64 [at 1:46]\nUPDATE
126
+example_model SET integer = (example_model.integer /...
127
128
129
## How it works
130
131
### Overall design
0 commit comments