We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 540ed84 commit 83953beCopy full SHA for 83953be
README.md
@@ -159,6 +159,20 @@ decimal values without the possibility of data loss.
159
160
Spanner doesn't have these functions.
161
162
+### Computations that yield FLOAT64 values can't be assigned to INT64 columns
163
+
164
+Spanner [doesn't support this](https://github.com/googleapis/python-spanner-django/issues/331).
165
166
+For example, if `integer` is `IntegerField`:
167
168
+```
169
+>>> ExampleModel.objects.update(integer=F('integer') / 2)
170
+...
171
+django.db.utils.ProgrammingError: 400 Value of type FLOAT64 cannot be
172
+assigned to integer, which has type INT64 [at 1:46]\nUPDATE
173
+example_model SET integer = (example_model.integer /...
174
175
176
## How it works
177
178
### Overall design
0 commit comments