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