()
| 240 | data = error.get("op") |
| 241 | |
| 242 | def get_condition(): |
| 243 | # 获取更新条件 |
| 244 | if condition_fields: |
| 245 | condition = { |
| 246 | condition_field: data[condition_field] |
| 247 | for condition_field in condition_fields |
| 248 | } |
| 249 | else: |
| 250 | # 根据重复的值获取更新条件 |
| 251 | condition = self.__get_update_condition( |
| 252 | coll_name, data, error.get("errmsg") |
| 253 | ) |
| 254 | |
| 255 | return condition |
| 256 | |
| 257 | if update_columns: |
| 258 | # 更新指定的列 |
nothing calls this directly
no test coverage detected