* Ends writing a document written with "Start document" to the current writer. */
| 1241 | * Ends writing a document written with "Start document" to the current writer. |
| 1242 | */ |
| 1243 | void |
| 1244 | PgbsonWriterEndDocument(pgbson_writer *writer, pgbson_writer *childWriter) |
| 1245 | { |
| 1246 | if (!bson_append_document_end(&(writer->innerBson), &(childWriter->innerBson))) |
| 1247 | { |
| 1248 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg( |
| 1249 | "adding EndDocument value: failed due to value being too large")) |
| 1250 | ); |
| 1251 | } |
| 1252 | } |
| 1253 | |
| 1254 | |
| 1255 | /* |
no outgoing calls
no test coverage detected