Details
-
Bug
-
Resolution: Fixed
-
Unknown
-
None
-
None
-
Fully Compatible
Description
In https://mongoc.org/libmongoc/current/mongoc_database_find_collections_with_opts.html
if (mongoc_cursor_error (cursor, &error))
|
fprintf (stderr, "%s\n", error.msg);
|
}
|
Produces
main.c:139:37: error: 'bson_error_t' {aka 'struct _bson_error_t'} has no member named 'msg'
|
139 | fprintf (stderr, "%s\n", error.msg);
|
| ^
|
Looking at definition in source, the field is called message:
typedef struct _bson_error_t {
|
uint32_t domain;
|
uint32_t code;
|
char message[BSON_ERROR_BUFFER_SIZE];
|
} bson_error_t BSON_ALIGNED_END (8);
|
Attachments
Issue Links
- is duplicated by
-
CDRIVER-4477 Find collections example does not declare cursor
-
- Closed
-