* Throws an error that the _id has been detected as changed in the process of updating the document. * Call it when UpdateType is Replace Document and _id has changed. */
| 123 | * Call it when UpdateType is Replace Document and _id has changed. |
| 124 | */ |
| 125 | inline static void |
| 126 | ThrowIdPathModifiedError(void) |
| 127 | { |
| 128 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_IMMUTABLEFIELD), |
| 129 | errmsg( |
| 130 | "Cannot modify '_id' field as part of the operation"))); |
| 131 | } |
| 132 | |
| 133 | |
| 134 | /* |
no outgoing calls
no test coverage detected