Bug #24730 | Wrong embedded server example | ||
---|---|---|---|
Submitted: | 30 Nov 2006 18:05 | Modified: | 30 Nov 2006 19:37 |
Reporter: | Sveta Smirnova | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 4.1, 5.1 | OS: | Any (any) |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[30 Nov 2006 18:05]
Sveta Smirnova
[30 Nov 2006 18:56]
Paul DuBois
Sveta, rather than hard-coding 2 into the example, would it be better to do this: int num_elements = (sizeof(server_options)/ sizeof(char *)) - 1; Does that work?
[30 Nov 2006 19:19]
Sveta Smirnova
Paul, yes, it would be fine.
[30 Nov 2006 19:37]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.