* Finishes appending a nested array to the current array writer. */
| 1170 | * Finishes appending a nested array to the current array writer. |
| 1171 | */ |
| 1172 | void |
| 1173 | PgbsonArrayWriterEndArray(pgbson_array_writer *writer, pgbson_array_writer *childWriter) |
| 1174 | { |
| 1175 | if (!bson_append_array_end(&(writer->innerBson), &(childWriter->innerBson))) |
| 1176 | { |
| 1177 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg( |
| 1178 | "adding ArrayWriterEndArray value: failed due to value being too large")) |
| 1179 | ); |
| 1180 | } |
| 1181 | |
| 1182 | writer->index++; |
| 1183 | } |
| 1184 | |
| 1185 | |
| 1186 | /* |
no outgoing calls
no test coverage detected