-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V1.0.3 10.1 #3
base: master
Are you sure you want to change the base?
V1.0.3 10.1 #3
Changes from all commits
cfdf5d5
da6cbb2
d70fe36
e63837e
4489b48
dc77c45
ccc057b
f293652
fe5ea79
4346a0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ MariaDB IBM i DB2 storage engine. | |
|
||
version | ||
``` | ||
1.0.1 | ||
1.0.3 (in development) | ||
``` | ||
|
||
copy source | ||
``` | ||
> mkdir -p storage/ibmdb2i/special | ||
> unzip maria_ibmdb2i-1.0.1.zip | ||
> unzip maria_ibmdb2i-1.0.3.zip | ||
Note: | ||
Use storage/ibmdb2i, not storage/ibmidb2i (Dave) | ||
``` | ||
|
@@ -20,6 +20,11 @@ Fix-up for gcc 4.8.3 | |
> chmod +x zzcpy2gccfixed.sh | ||
> ./zzcpy2gccfixed.sh | ||
``` | ||
Fixup for gcc 6.3 from IBM yum repo | ||
cd storage/ibmdb2i/special | ||
cp /usr/include/unistd.h | ||
cp /QIBM/include/qmyse.h | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @abmusse , do you know why these steps aren't required for your builds you've done? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks there is https://github.com/zendtech/db2iengine/blob/master/special/include/qmyse.h We prepend the https://github.com/zendtech/db2iengine/blob/master/CMakeLists.txt#L3 https://cmake.org/cmake/help/v3.7/command/include_directories.html#command:include_directories I'm not sure why |
||
|
||
|
||
mariadb build (subset myisam only) | ||
``` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ OF SUCH DAMAGE. | |
The ha_ibmdb2i storage engine provides an interface from MySQL to IBM DB2 for i. | ||
|
||
*/ | ||
|
||
#define NDEBUG | ||
#ifdef USE_PRAGMA_IMPLEMENTATION | ||
#pragma implementation // gcc: Class implementation | ||
#endif | ||
|
@@ -51,12 +51,13 @@ OF SUCH DAMAGE. | |
#include "sql_priv.h" | ||
#include "key.h" // key_copy | ||
#include "ha_ibmdb2i.h" | ||
#include <mysql/plugin.h> | ||
//#include <mysql/plugin.h> | ||
#include "db2i_ileBridge.h" | ||
#include "db2i_charsetSupport.h" | ||
#include <sys/utsname.h> | ||
#include "db2i_safeString.h" | ||
|
||
|
||
static const char __NOT_NULL_VALUE_EBCDIC = 0xF0; // '0' | ||
static const char __NULL_VALUE_EBCDIC = 0xF1; // '1' | ||
static const char __DEFAULT_VALUE_EBCDIC = 0xC4; // 'D' | ||
|
@@ -382,7 +383,9 @@ static int ibmdb2i_init_func(void *p) | |
|
||
DBUG_PRINT("ibmdb2i_init_func",("(adc) leaving")); | ||
|
||
DBUG_RETURN(rc); | ||
//David Lowes - disable debug return to prevent crash until fix found | ||
//DBUG_RETURN(rc); | ||
return rc; | ||
} | ||
|
||
|
||
|
@@ -662,7 +665,7 @@ ha_ibmdb2i::ha_ibmdb2i(handlerton *hton, TABLE_SHARE *table_arg) : | |
activeReadBuf(NULL), | ||
activeWriteBuf(NULL), | ||
blobReadBuffers(NULL), | ||
// blobWriteBuffers, | ||
blobWriteBuffers(NULL), | ||
last_rnd_init_rc(0), | ||
last_index_init_rc(0), | ||
last_start_bulk_insert_rc(0), | ||
|
@@ -3827,28 +3830,8 @@ void ha_ibmdb2i::generateAndAppendRCDFMT(const char* tableName, String& query) | |
// plugin definition | ||
// note: ibmdb2i | ||
// zenddbi/storage/ibmdb2i | ||
|
||
struct st_mysql_storage_engine ibmdb2i_storage_engine= | ||
{ MYSQL_HANDLERTON_INTERFACE_VERSION }; | ||
|
||
mysql_declare_plugin(ibmdb2i) | ||
{ | ||
MYSQL_STORAGE_ENGINE_PLUGIN, | ||
&ibmdb2i_storage_engine, | ||
ibmdb2i_hton_name, | ||
"The IBM development team in Rochester, Minnesota", | ||
"IBM DB2 for i Storage Engine", | ||
PLUGIN_LICENSE_GPL, | ||
ibmdb2i_init_func, /* Plugin Init */ | ||
ibmdb2i_done_func, /* Plugin Deinit */ | ||
0x0100 /* 1.0 */, | ||
NULL, /* status variables */ | ||
ibmdb2i_system_variables, /* system variables */ | ||
NULL, /* config options */ | ||
0, /* flags */ | ||
} | ||
mysql_declare_plugin_end; | ||
|
||
maria_declare_plugin(ibmdb2i) | ||
{ | ||
MYSQL_STORAGE_ENGINE_PLUGIN, | ||
|
@@ -3859,10 +3842,10 @@ maria_declare_plugin(ibmdb2i) | |
PLUGIN_LICENSE_GPL, | ||
ibmdb2i_init_func, | ||
ibmdb2i_done_func, | ||
0x0100, | ||
0x0102, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @davidl71, please explain this change. We might need this! |
||
NULL, | ||
ibmdb2i_system_variables, | ||
"1.0", | ||
"1.0.3", | ||
MariaDB_PLUGIN_MATURITY_STABLE | ||
} | ||
maria_declare_plugin_end; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ OF SUCH DAMAGE. | |
|
||
#include <as400_types.h> | ||
#include <as400_protos.h> | ||
#include <mysql/plugin.h> | ||
//#include <mysql/plugin.h> | ||
#include "db2i_global.h" | ||
#include "db2i_ileBridge.h" | ||
/* #include "builtins.h" */ | ||
|
@@ -61,6 +61,24 @@ OF SUCH DAMAGE. | |
#include "db2i_errors.h" | ||
#include "db2i_sqlStatementStream.h" | ||
|
||
//David Lowes - Temporarily exclude mysql/plugin.h and manually define used constants | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any idea why you needed to do this? |
||
#define MYSQL_VERSION_MAJOR 10 | ||
#define MYSQL_VERSION_MINOR 1 | ||
#define MYSQL_VERSION_PATCH 21 | ||
#define MYSQL_VERSION_EXTRA "" | ||
|
||
#define PACKAGE "mysql" | ||
#define PACKAGE_BUGREPORT "" | ||
#define PACKAGE_NAME "MySQL Server" | ||
#define PACKAGE_STRING "MySQL Server 10.1.21" | ||
#define PACKAGE_TARNAME "mysql" | ||
#define PACKAGE_VERSION "10.1.21" | ||
#define VERSION "10.1.21" | ||
#define PROTOCOL_VERSION 10 | ||
|
||
#undef HAVE_ATTRIBUTE_CLEANUP | ||
//David Lowes - temporarily disable DBUG_PRINT to prevent crashes | ||
#define DBUG_PRINT(keyword,arglist) do { } while(0) | ||
/** @brief | ||
IBMDB2I_SHARE is a structure that will be shared among all open handlers. | ||
It is used to describe the underlying table definition, and it caches | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidl71, what's the magic you used to determine
-DMARIA_PLUGIN_INTERFACE_VERSION=536875296
?I believe the other changes to this line are no longer needed due to other source code changes in the master branch