Commit 9cf1efe
committed
Explicitly cast
When doing a comparison, the `AttributeValue` was implicitly being cast from `VARCHAR(255)` to `INT`. In our scenarios, this shouldn't be a problem. But because it could result in data loss if the `ParentID` field is not (correctly) set to an integer, that raises a warning. To avoid this—and to provide a very trivial performance improvement—we're explicitly converting the `TopicID` from `INT` to `VARCHAR(255)`. This yields no data loss, and allows the two fields to be quickly compared to one another.TopicID
1 parent 791486e commit 9cf1efe
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
0 commit comments