* Ends writing the document written with the StartDocument in an array. */
| 1276 | * Ends writing the document written with the StartDocument in an array. |
| 1277 | */ |
| 1278 | void |
| 1279 | PgbsonArrayWriterEndDocument(pgbson_array_writer *writer, pgbson_writer *childWriter) |
| 1280 | { |
| 1281 | if (!bson_append_document_end(&(writer->innerBson), &(childWriter->innerBson))) |
| 1282 | { |
| 1283 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg( |
| 1284 | "adding ArrayWriterEndDocument value: failed due to value being too large")) |
| 1285 | ); |
| 1286 | } |
| 1287 | |
| 1288 | writer->index++; |
| 1289 | } |
| 1290 | |
| 1291 | |
| 1292 | /* |
no outgoing calls
no test coverage detected