Bug #71409 ndbapi-examples/ndbapi_blob_ndbrecord #include <ndb_global.h>
Submitted: 17 Jan 2014 15:07 Modified: 5 Feb 2014 13:02
Reporter: Gustaf Thorslund Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: NDB API Severity:S3 (Non-critical)
Version:7.2 OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any

[17 Jan 2014 15:07] Gustaf Thorslund
Description:
The example:
  storage/ndb/ndbapi-examples/ndbapi_blob_ndbrecord
#include <ndb_global.h>
However, that's an internal header file not included with binary distributions.

How to repeat:
Try building the example giving it the path of include files shipped with a binary distribution.

Suggested fix:
-#include <ndb_global.h>
 #include <mysql.h>
 #include <mysqld_error.h>
 #include <NdbApi.hpp>
@@ -34,7 +33,8 @@
 #include <iostream>
 #include <stdio.h>
 #include <ctype.h>
-
+#include <stdlib.h>
+#include <string.h>
[5 Feb 2014 13:02] Magnus Blåudd
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html
[5 Feb 2014 16:42] Jon Stephens
Documented fix as follows in the NDB 7.2.16 and NDB 7.3.5 changelogs:

        The example ndbapi-examples/ndbapi_blob_ndbrecord/main.cpp
        included a an internal header file ndb_global.h not found in the
        MySQL Cluster binary distribution. The example now uses stdlib.h
        and string.h instead of this file.
      

Already closed, no status change.