ibm_db 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES +9 -0
- data/README +1 -0
- data/ext/Makefile +9 -9
- data/ext/extconf.rb +12 -3
- data/ext/ibm_db.c +15 -29
- data/ext/ibm_db.o +0 -0
- data/ext/ibm_db.so +0 -0
- data/ext/mkmf.log +11 -11
- data/ext/ruby_ibm_db_cli.c +1 -1
- data/ext/ruby_ibm_db_cli.o +0 -0
- data/lib/IBM_DB.rb +1 -1
- data/lib/active_record/connection_adapters/ibm_db_adapter.rb +478 -407
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6983933aaeb958477cc8ba1d730f309bc41ced3328a8072967eb6407eb8cda73
|
4
|
+
data.tar.gz: bcd09c6f02fe2b9cb1c706229e0b9edcadb8e2c82bb193c1b954ef7191e76d18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e3de0252a1757e3c1a9d61294a168d47fb12bf2e53c135e874c29a27cdff93fb572a68285a2263e5e2edbfabb485e981852939711e58230aa812d5069c9add4
|
7
|
+
data.tar.gz: 76b4f1f94bb187c4906876756c42ecfb894ea022d8230846c72bf73a6b82bac897478a1bc08f2f2f28d0c094cff731be109febed425bc9bc581f4826a7336db5
|
data/CHANGES
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
Change Log
|
2
2
|
==============
|
3
|
+
2025/06/03 (IBM_DB adapter 5.6.0, driver 3.2.0)
|
4
|
+
- Support for ruby 3.3 and rails 7.2.2.1
|
5
|
+
|
6
|
+
2024/12/13 (IBM_DB adapter 5.5.1, driver 3.1.1)
|
7
|
+
- Support for MAC ARM64
|
8
|
+
|
9
|
+
2024/07/10 (IBM_DB adapter 5.5.0, driver 3.1.0)
|
10
|
+
- Support for ruby 3.2 and rails 7.1.3.2
|
11
|
+
|
3
12
|
2023/10/11 (IBM_DB adapter 5.4.2, driver 3.1.0)
|
4
13
|
- config.yml to have Environment variables to specify credentials.
|
5
14
|
|
data/README
CHANGED
data/ext/Makefile
CHANGED
@@ -13,12 +13,12 @@ NULLCMD = :
|
|
13
13
|
#### Start of system configuration section. ####
|
14
14
|
|
15
15
|
srcdir = .
|
16
|
-
topdir = /home/pnarayanappa/
|
16
|
+
topdir = /home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0
|
17
17
|
hdrdir = $(topdir)
|
18
|
-
arch_hdrdir = /home/pnarayanappa/
|
18
|
+
arch_hdrdir = /home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/x86_64-linux
|
19
19
|
PATH_SEPARATOR = :
|
20
20
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
21
|
-
prefix = $(DESTDIR)/home/pnarayanappa/
|
21
|
+
prefix = $(DESTDIR)/home/pnarayanappa/ROR33/ruby_exe
|
22
22
|
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
23
23
|
rubyarchprefix = $(rubylibprefix)/$(arch)
|
24
24
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
@@ -82,13 +82,13 @@ cflags = $(optflags) $(debugflags) $(warnflags)
|
|
82
82
|
cxxflags =
|
83
83
|
optflags = -O3 -fno-fast-math
|
84
84
|
debugflags = -ggdb3
|
85
|
-
warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -
|
85
|
+
warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef
|
86
86
|
cppflags =
|
87
87
|
CCDLFLAGS = -fPIC
|
88
88
|
CFLAGS = $(CCDLFLAGS) $(cflags) $(ARCH_FLAG)
|
89
89
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
90
90
|
DEFS =
|
91
|
-
CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/home/pnarayanappa/
|
91
|
+
CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include $(DEFS) $(cppflags)
|
92
92
|
CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
|
93
93
|
ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic
|
94
94
|
dldflags = -Wl,--compress-debug-sections=zlib
|
@@ -108,7 +108,7 @@ RUBY_BASE_NAME = ruby
|
|
108
108
|
|
109
109
|
arch = x86_64-linux
|
110
110
|
sitearch = $(arch)
|
111
|
-
ruby_version = 3.
|
111
|
+
ruby_version = 3.3.0
|
112
112
|
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
113
113
|
RUBY = $(ruby)
|
114
114
|
BUILTRUBY = $(bindir)/$(RUBY_BASE_NAME)
|
@@ -117,7 +117,7 @@ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h
|
|
117
117
|
RM = rm -f
|
118
118
|
RM_RF = rm -fr
|
119
119
|
RMDIRS = rmdir --ignore-fail-on-non-empty -p
|
120
|
-
MAKEDIRS = /bin/mkdir -p
|
120
|
+
MAKEDIRS = /usr/bin/mkdir -p
|
121
121
|
INSTALL = /usr/bin/install -c
|
122
122
|
INSTALL_PROG = $(INSTALL) -m 0755
|
123
123
|
INSTALL_DATA = $(INSTALL) -m 644
|
@@ -127,8 +127,8 @@ TOUCH = exit >
|
|
127
127
|
#### End of system configuration section. ####
|
128
128
|
|
129
129
|
preload =
|
130
|
-
libpath = . $(libdir) /home/pnarayanappa/
|
131
|
-
LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir) -L/home/pnarayanappa/
|
130
|
+
libpath = . $(libdir) /home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib
|
131
|
+
LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir) -L/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -Wl,-rpath,/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib '-Wl,-R$$ORIGIN/clidriver/lib'
|
132
132
|
DEFFILE =
|
133
133
|
|
134
134
|
CLEANFILES = mkmf.log
|
data/ext/extconf.rb
CHANGED
@@ -10,7 +10,7 @@ require 'down'
|
|
10
10
|
# +----------------------------------------------------------------------+
|
11
11
|
# | Licensed Materials - Property of IBM |
|
12
12
|
# | |
|
13
|
-
# | (C) Copyright IBM Corporation 2006 -
|
13
|
+
# | (C) Copyright IBM Corporation 2006 - 2024 |
|
14
14
|
# +----------------------------------------------------------------------+
|
15
15
|
|
16
16
|
TAR_LONGLINK = '././@LongLink'
|
@@ -90,8 +90,11 @@ elsif (RUBY_PLATFORM =~ /solaris/i)
|
|
90
90
|
DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sunamd32_odbc_cli.tar.gz"
|
91
91
|
end
|
92
92
|
elsif (RUBY_PLATFORM =~ /darwin/i)
|
93
|
-
if(
|
94
|
-
puts "Detected platform - MacOS
|
93
|
+
if (RUBY_PLATFORM =~ /arm64/i)
|
94
|
+
puts "Detected platform - MacOS darwin arm64"
|
95
|
+
DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macarm64_odbc_cli.tar.gz"
|
96
|
+
elsif(RUBY_PLATFORM =~ /x86_64/i || is64Bit)
|
97
|
+
puts "Detected platform - MacOS darwin x86_64"
|
95
98
|
DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz"
|
96
99
|
else
|
97
100
|
puts "Mac OS 32 bit not supported. Please use an x64 architecture."
|
@@ -151,11 +154,17 @@ def untarCLIPackage(archive,destination)
|
|
151
154
|
FileUtils.mkdir_p file, :mode => entry.header.mode, :verbose => false
|
152
155
|
elsif entry.file?
|
153
156
|
FileUtils.rm_rf file if File.directory? file
|
157
|
+
if (RUBY_PLATFORM =~ /darwin/i) && (RUBY_PLATFORM =~ /arm64/i) && File.exist?(file)
|
158
|
+
FileUtils.chmod 755, file, :verbose => false
|
159
|
+
end
|
154
160
|
File.open file, "wb" do |f|
|
155
161
|
f.print entry.read
|
156
162
|
end
|
157
163
|
FileUtils.chmod entry.header.mode, file, :verbose => false
|
158
164
|
elsif entry.header.typeflag == '2' #Symlink!
|
165
|
+
if (RUBY_PLATFORM =~ /darwin/i) && (RUBY_PLATFORM =~ /arm64/i) && File.exist?(file)
|
166
|
+
File.delete file if File.file? file
|
167
|
+
end
|
159
168
|
File.symlink entry.header.linkname, file
|
160
169
|
end
|
161
170
|
end
|
data/ext/ibm_db.c
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
+----------------------------------------------------------------------+
|
3
3
|
| Licensed Materials - Property of IBM |
|
4
4
|
| |
|
5
|
-
| (C) Copyright IBM Corporation 2006 -
|
5
|
+
| (C) Copyright IBM Corporation 2006 - 2025 |
|
6
6
|
+----------------------------------------------------------------------+
|
7
7
|
| Authors: Sushant Koduru, Lynh Nguyen, Kanchana Padmanabhan, |
|
8
8
|
| Dan Scott, Helmut Tessarek, Sam Ruby, Kellen Bombardier, |
|
@@ -12,7 +12,7 @@
|
|
12
12
|
+----------------------------------------------------------------------+
|
13
13
|
*/
|
14
14
|
|
15
|
-
#define MODULE_RELEASE "3.
|
15
|
+
#define MODULE_RELEASE "3.2.0"
|
16
16
|
|
17
17
|
#ifdef HAVE_CONFIG_H
|
18
18
|
#include "config.h"
|
@@ -9578,36 +9578,22 @@ static VALUE _ruby_ibm_db_bind_fetch_helper(ibm_db_fetch_helper_args *data)
|
|
9578
9578
|
return Qnil;
|
9579
9579
|
}
|
9580
9580
|
|
9581
|
-
|
9582
|
-
|
9583
|
-
|
9584
|
-
strcat(tmpStr, row_data->str_val);
|
9585
|
-
strcat(tmpStr, "\')");
|
9581
|
+
strcpy(tmpStr, "BigDecimal(\'");
|
9582
|
+
strcat(tmpStr, row_data->str_val);
|
9583
|
+
strcat(tmpStr, "\')");
|
9586
9584
|
|
9587
|
-
|
9588
|
-
|
9589
|
-
}
|
9590
|
-
if ( op == FETCH_INDEX ) {
|
9591
|
-
rb_ary_store(return_value, i, rb_eval_string(tmpStr) );
|
9592
|
-
} else if ( op == FETCH_BOTH ) {
|
9593
|
-
rb_hash_aset( return_value, INT2NUM(i), rb_eval_string( tmpStr ) );
|
9594
|
-
}
|
9595
|
-
|
9596
|
-
ruby_xfree(tmpStr);
|
9597
|
-
tmpStr = NULL;
|
9585
|
+
if ( op & FETCH_ASSOC ) {
|
9586
|
+
rb_hash_aset(return_value, colName, rb_eval_string(tmpStr));
|
9598
9587
|
}
|
9599
|
-
|
9600
|
-
|
9601
|
-
|
9602
|
-
|
9603
|
-
}
|
9604
|
-
if ( op == FETCH_INDEX ) {
|
9605
|
-
rb_ary_store(return_value, i, LONG2NUM(atol((char *)row_data->str_val)));
|
9606
|
-
} else if ( op == FETCH_BOTH ) {
|
9607
|
-
rb_hash_aset(return_value, INT2NUM(i), LONG2NUM(atol((char *)row_data->str_val)));
|
9608
|
-
}
|
9588
|
+
if ( op == FETCH_INDEX ) {
|
9589
|
+
rb_ary_store(return_value, i, rb_eval_string(tmpStr) );
|
9590
|
+
} else if ( op == FETCH_BOTH ) {
|
9591
|
+
rb_hash_aset( return_value, INT2NUM(i), rb_eval_string( tmpStr ) );
|
9609
9592
|
}
|
9610
9593
|
|
9594
|
+
ruby_xfree(tmpStr);
|
9595
|
+
tmpStr = NULL;
|
9596
|
+
|
9611
9597
|
break;
|
9612
9598
|
case SQL_SMALLINT:
|
9613
9599
|
if ( op & FETCH_ASSOC ) {
|
@@ -11237,7 +11223,7 @@ VALUE ibm_db_server_info(int argc, VALUE *argv, VALUE self)
|
|
11237
11223
|
rb_scan_args(argc, argv, "1", &connection);
|
11238
11224
|
|
11239
11225
|
|
11240
|
-
if(NIL_P(
|
11226
|
+
if(NIL_P(connection))
|
11241
11227
|
{
|
11242
11228
|
}
|
11243
11229
|
if(&connection == NULL)
|
data/ext/ibm_db.o
CHANGED
Binary file
|
data/ext/ibm_db.so
CHANGED
Binary file
|
data/ext/mkmf.log
CHANGED
@@ -14,7 +14,7 @@ unicode_support_version.h is:
|
|
14
14
|
|
15
15
|
have_library: checking for SQLConnect() in -ldb2... -------------------- yes
|
16
16
|
|
17
|
-
LD_LIBRARY_PATH=.:/home/pnarayanappa/
|
17
|
+
LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR33/ruby_exe/lib:/usr/lib64:/jre/lib:/jre/bin:/lib "gcc -o conftest -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/x86_64-linux -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/ruby/backward -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0 -I. -I/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef conftest.c -L. -L/home/pnarayanappa/ROR33/ruby_exe/lib -Wl,-rpath,/home/pnarayanappa/ROR33/ruby_exe/lib -L/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -Wl,-rpath,/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/home/pnarayanappa/ROR33/ruby_exe/lib -L/home/pnarayanappa/ROR33/ruby_exe/lib -lruby-static -lz -lrt -lrt -lgmp -ldl -lcrypt -lm -lpthread -lm -lpthread -lc"
|
18
18
|
checked program was:
|
19
19
|
/* begin */
|
20
20
|
1: #include "ruby.h"
|
@@ -25,17 +25,16 @@ checked program was:
|
|
25
25
|
6: }
|
26
26
|
/* end */
|
27
27
|
|
28
|
-
LD_LIBRARY_PATH=.:/home/pnarayanappa/
|
28
|
+
LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR33/ruby_exe/lib:/usr/lib64:/jre/lib:/jre/bin:/lib "gcc -o conftest -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/x86_64-linux -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/ruby/backward -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0 -I. -I/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef conftest.c -L. -L/home/pnarayanappa/ROR33/ruby_exe/lib -Wl,-rpath,/home/pnarayanappa/ROR33/ruby_exe/lib -L/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -Wl,-rpath,/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/home/pnarayanappa/ROR33/ruby_exe/lib -L/home/pnarayanappa/ROR33/ruby_exe/lib -lruby-static -lz -lrt -lrt -lgmp -ldl -lcrypt -lm -lpthread -ldb2 -lm -lpthread -lc"
|
29
29
|
conftest.c: In function ‘t’:
|
30
30
|
conftest.c:14:57: error: ‘SQLConnect’ undeclared (first use in this function)
|
31
|
-
int t(void) { void ((*volatile p)()); p = (void ((*)()))SQLConnect; return !p; }
|
32
|
-
^~~~~~~~~~
|
31
|
+
14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))SQLConnect; return !p; }
|
32
|
+
| ^~~~~~~~~~
|
33
33
|
conftest.c:14:57: note: each undeclared identifier is reported only once for each function it appears in
|
34
34
|
conftest.c: At top level:
|
35
|
-
cc1:
|
36
|
-
cc1:
|
37
|
-
cc1:
|
38
|
-
cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
|
35
|
+
cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics
|
36
|
+
cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
|
37
|
+
cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
|
39
38
|
checked program was:
|
40
39
|
/* begin */
|
41
40
|
1: #include "ruby.h"
|
@@ -54,7 +53,8 @@ checked program was:
|
|
54
53
|
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))SQLConnect; return !p; }
|
55
54
|
/* end */
|
56
55
|
|
57
|
-
LD_LIBRARY_PATH=.:/home/pnarayanappa/
|
56
|
+
LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR33/ruby_exe/lib:/usr/lib64:/jre/lib:/jre/bin:/lib "gcc -o conftest -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/x86_64-linux -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/ruby/backward -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0 -I. -I/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef conftest.c -L. -L/home/pnarayanappa/ROR33/ruby_exe/lib -Wl,-rpath,/home/pnarayanappa/ROR33/ruby_exe/lib -L/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -Wl,-rpath,/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/home/pnarayanappa/ROR33/ruby_exe/lib -L/home/pnarayanappa/ROR33/ruby_exe/lib -lruby-static -lz -lrt -lrt -lgmp -ldl -lcrypt -lm -lpthread -ldb2 -lm -lpthread -lc"
|
57
|
+
/usr/bin/ld: warning: libcrypt.so.1, needed by /home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib/libdb2.so, may conflict with libcrypt.so.2
|
58
58
|
checked program was:
|
59
59
|
/* begin */
|
60
60
|
1: #include "ruby.h"
|
@@ -78,7 +78,7 @@ checked program was:
|
|
78
78
|
|
79
79
|
have_header: checking for gil_release_version.h... -------------------- yes
|
80
80
|
|
81
|
-
LD_LIBRARY_PATH=.:/home/pnarayanappa/
|
81
|
+
LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR33/ruby_exe/lib:/usr/lib64:/jre/lib:/jre/bin:/lib "gcc -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/x86_64-linux -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/ruby/backward -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0 -I. -I/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -c conftest.c"
|
82
82
|
checked program was:
|
83
83
|
/* begin */
|
84
84
|
1: #include "ruby.h"
|
@@ -90,7 +90,7 @@ checked program was:
|
|
90
90
|
|
91
91
|
have_header: checking for unicode_support_version.h... -------------------- yes
|
92
92
|
|
93
|
-
LD_LIBRARY_PATH=.:/home/pnarayanappa/
|
93
|
+
LD_LIBRARY_PATH=.:/home/pnarayanappa/ROR33/ruby_exe/lib:/usr/lib64:/jre/lib:/jre/bin:/lib "gcc -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/x86_64-linux -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0/ruby/backward -I/home/pnarayanappa/ROR33/ruby_exe/include/ruby-3.3.0 -I. -I/home/pnarayanappa/ROR33/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -c conftest.c"
|
94
94
|
checked program was:
|
95
95
|
/* begin */
|
96
96
|
1: #include "ruby.h"
|
data/ext/ruby_ibm_db_cli.c
CHANGED
@@ -208,7 +208,7 @@ int _ruby_ibm_db_SQLForeignKeys_helper(metadata_args *data) {
|
|
208
208
|
|
209
209
|
data->stmt_res->is_executing = 1;
|
210
210
|
|
211
|
-
if(!NIL_P(data->table_type))
|
211
|
+
if(data->table_type != NULL && !NIL_P(*data->table_type))
|
212
212
|
{
|
213
213
|
#ifndef UNICODE_SUPPORT_VERSION_H
|
214
214
|
rc = SQLForeignKeys( (SQLHSTMT) data->stmt_res->hstmt, data->qualifier, data->qualifier_len,
|
data/ext/ruby_ibm_db_cli.o
CHANGED
Binary file
|
data/lib/IBM_DB.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
if(RUBY_PLATFORM =~ /darwin/i)
|
2
2
|
cliPackagePath = File.dirname(__FILE__) + '/clidriver'
|
3
|
-
if(Dir.
|
3
|
+
if(Dir.exist?(cliPackagePath))
|
4
4
|
currentPath = "#{File.expand_path(File.dirname(File.dirname(__FILE__)))}"
|
5
5
|
|
6
6
|
cmd = "chmod 755 #{currentPath}/lib/ibm_db.bundle "
|