ruby-oci8 2.2.4.1 → 2.2.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/ChangeLog +311 -1
  3. data/NEWS +278 -46
  4. data/README.md +5 -2
  5. data/dist-files +8 -4
  6. data/docs/bind-array-to-in_cond.md +1 -1
  7. data/docs/install-instant-client.md +2 -1
  8. data/docs/install-on-osx.md +29 -116
  9. data/docs/ldap-auth-and-function-interposition.md +123 -0
  10. data/docs/number-type-mapping.md +79 -0
  11. data/ext/oci8/apiwrap.c.tmpl +2 -5
  12. data/ext/oci8/apiwrap.rb +6 -1
  13. data/ext/oci8/apiwrap.yml +34 -22
  14. data/ext/oci8/attr.c +4 -2
  15. data/ext/oci8/bind.c +366 -6
  16. data/ext/oci8/connection_pool.c +3 -3
  17. data/ext/oci8/error.c +18 -33
  18. data/ext/oci8/extconf.rb +7 -4
  19. data/ext/oci8/hook_funcs.c +128 -51
  20. data/ext/oci8/lob.c +31 -75
  21. data/ext/oci8/metadata.c +2 -2
  22. data/ext/oci8/object.c +72 -27
  23. data/ext/oci8/oci8.c +27 -119
  24. data/ext/oci8/oci8.h +21 -3
  25. data/ext/oci8/oci8lib.c +50 -37
  26. data/ext/oci8/ocihandle.c +2 -2
  27. data/ext/oci8/ocinumber.c +22 -16
  28. data/ext/oci8/oraconf.rb +130 -257
  29. data/ext/oci8/oradate.c +1 -1
  30. data/ext/oci8/plthook_elf.c +384 -300
  31. data/ext/oci8/plthook_osx.c +10 -10
  32. data/ext/oci8/stmt.c +51 -16
  33. data/ext/oci8/win32.c +4 -22
  34. data/lib/oci8/bindtype.rb +1 -15
  35. data/lib/oci8/check_load_error.rb +57 -10
  36. data/lib/oci8/cursor.rb +48 -17
  37. data/lib/oci8/metadata.rb +9 -1
  38. data/lib/oci8/object.rb +10 -0
  39. data/lib/oci8/oci8.rb +26 -25
  40. data/lib/oci8/oracle_version.rb +11 -1
  41. data/lib/oci8/version.rb +1 -1
  42. data/lib/oci8.rb +11 -4
  43. data/lib/ruby-oci8.rb +0 -3
  44. data/ruby-oci8.gemspec +2 -3
  45. data/setup.rb +11 -2
  46. data/test/README.md +37 -0
  47. data/test/config.rb +1 -1
  48. data/test/setup_test_object.sql +21 -13
  49. data/test/setup_test_package.sql +59 -0
  50. data/test/test_all.rb +1 -0
  51. data/test/test_bind_boolean.rb +99 -0
  52. data/test/test_break.rb +11 -9
  53. data/test/test_clob.rb +4 -16
  54. data/test/test_datetime.rb +8 -3
  55. data/test/test_object.rb +33 -9
  56. data/test/test_oci8.rb +169 -45
  57. data/test/test_oranumber.rb +12 -6
  58. data/test/test_package_type.rb +15 -3
  59. data/test/test_properties.rb +17 -0
  60. metadata +40 -57
  61. data/docs/osx-install-dev-tools.png +0 -0
  62. data/test/README +0 -42
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1fedff79278c31d88dee698417671fb84c334ad61d08595662fcef4c792742eb
4
+ data.tar.gz: 8af51646f9e6c4f96be8baaf15582b1e510f8655ed4c4f06cc45f0ab2599e8ea
5
+ SHA512:
6
+ metadata.gz: f3efe23976439e355436b273d28778a1658d01c1d0c57809e3d992600efc98d0455f44936b711026d7eb4dc9599dda6477367edb49823d125a4cc6d2ef3f2349
7
+ data.tar.gz: 9ff212eccdc0e737f648aaab32f4958e47f5c551823d6d9613b89cf8f5195561980f5cc5c0d34c7a88e591c045b601ff779cb5a7b562ca26c0efbaa532e198f2
data/ChangeLog CHANGED
@@ -1,7 +1,317 @@
1
+ 2020-12-30 Kubo Takehiro <kubo@jiubao.org>
2
+ * NEWS: Add changes between 2.2.8 and 2.2.9.
3
+ * lib/oci8/version.rb: Update to 2.2.9.
4
+ * mkpkg-win32.rb: remove unmaintained ruby versions from binary gems.
5
+
6
+ 2020-12-29 Kubo Takehiro <kubo@jiubao.org>
7
+ * ext/oci8/oraconf.rb: Support --with-instant-client-dir along with --with-instant-client-lib/include.
8
+ (GH-223)
9
+
10
+ 2020-12-29 Kubo Takehiro <kubo@jiubao.org>
11
+ * ext/oci8/hook_funcs.c: Fix hooking failure with truffleruby.
12
+ * test/test_break.rb: Fix to pass tests with truffleruby.
13
+
14
+ 2020-12-28 Kubo Takehiro <kubo@jiubao.org>
15
+ * mkpkg-win32.rb: Build binary gems for ruby 3.0 on Windows.
16
+
17
+ 2020-12-28 Kubo Takehiro <kubo@jiubao.org>
18
+ * ext/oci8/ocinumber.c: Suppress C compiler warning: enumeration value ‘RUBY_T_NONE’ not handled in switch
19
+
20
+ 2020-09-10 Kubo Takehiro <kubo@jiubao.org>
21
+ * ext/oci8/extconf.rb: Fix for TruffleRuby 20.2 or before.
22
+
23
+ 2020-09-08 Brandon Fish <brandon.j.fish@oracle.com>
24
+ * ext/oci8/extconf.rb, lib/oci8.rb: Handle truffleruby RUBY_ENGINE in case statements
25
+
26
+ 2020-01-11 Kubo Takehiro <kubo@jiubao.org>
27
+ * NEWS: Add changes between 2.2.7 and 2.2.8.
28
+ * lib/oci8/version.rb: Update to 2.2.8.
29
+
30
+ 2020-01-11 Kubo Takehiro <kubo@jiubao.org>
31
+ * ext/oci8/bind.c: Fix warning: comparison between signed and
32
+ unsigned integer expressions
33
+
34
+ 2020-01-11 Kubo Takehiro <kubo@jiubao.org>
35
+ * test/README.md: Update preparation SQL statements for running tests.
36
+
37
+ 2020-01-11 Kubo Takehiro <kubo@jiubao.org>
38
+ * test/test_break.rb: Check Oracle server OS where tests run
39
+ using dbms_utility.port_string. Tests in test_break.rb
40
+ failed on Windows.
41
+
42
+ 2020-01-07 Kubo Takehiro <kubo@jiubao.org>
43
+ * mkpkg-win32.rb: Workarounds for compilation using ruby 2.4 and 2.6 with
44
+ latest msys2 to avoid 'undefined reference to __chk_fail'
45
+
46
+ 2020-01-06 Kubo Takehiro <kubo@jiubao.org>
47
+ * ext/oci8/win32.c: Fix warnings caused by the change of rb_ensure()'s
48
+ arguments in ruby 2.7.
49
+
50
+ 2019-12-16 Kubo Takehiro <kubo@jiubao.org>
51
+ * test/test_datetime.rb: Remove "require 'scanf'" to run tests with Ruby 2.7.
52
+ The 'scanf' library was removed. https://bugs.ruby-lang.org/issues/16170
53
+
54
+ 2019-12-15 Kubo Takehiro <kubo@jiubao.org>
55
+ * ext/oci8/oradate.c: Fix bug of OraDate.now introduced 15 years ago.
56
+
57
+ 2019-12-15 Kubo Takehiro <kubo@jiubao.org>
58
+ * ext/oci8/attr.c, ext/oci8/oci8lib.c: Fix warnings caused by the
59
+ change of rb_ensure()'s arguments in ruby 2.7.
60
+
61
+ 2019-06-19 Kubo Takehiro <kubo@jiubao.org>
62
+ * Merge pull request #217 from nathanbwright/patch-1
63
+ Fix spelling in install-instant-client.md
64
+ (GH-217)
65
+
66
+ 2019-06-18 Nathan Wright <nathanbwright@users.noreply.github.com>
67
+ * docs/install-instant-client.md: Fix spelling in install-instant-client.md
68
+ (GH-217)
69
+
70
+ 2019-04-24 Kubo Takehiro <kubo@jiubao.org>
71
+ * Merge pull request #212 from tomasjura/master
72
+ Compilation fix for Windows ( and some small cleanups )
73
+ (GH-212)
74
+
75
+ 2019-04-23 Tomas Jura <tomas.jura1@gmail.com>
76
+ * ext/oci8/oci8.h: eliminate compiler warning
77
+ (GH-212)
78
+
79
+ 2019-04-20 Tomas Jura <tomas.jura1@gmail.com>
80
+ * ext/oci8/bind.c: compiler warning eliminated
81
+ (GH-212)
82
+
83
+ 2019-04-20 Tomas Jura <tomas.jura1@gmail.com>
84
+ * setup.rb: use splat operator instead dummy variables
85
+ (GH-212)
86
+
87
+ 2019-04-20 Tomas Jura <tomas.jura1@gmail.com>
88
+ * lib/oci8.rb: use fiddler instead obsolete Win32API
89
+ (GH-212)
90
+
91
+ 2019-04-20 Tomas Jura <tomas.jura1@gmail.com>
92
+ * ext/oci8/oraconf.rb: fix typo in windows compilation
93
+ (GH-212)
94
+
95
+ 2019-03-23 Kubo Takehiro <kubo@jiubao.org>
96
+ * Merge pull request #210 from dminuoso/allow-custom
97
+ (Nix) Allow for specifying include/library paths
98
+ (GH-210)
99
+
100
+ 2019-03-23 Victor Nawothnig <Victor.Nawothnig@gmail.com>
101
+ * ext/oci8/oraconf.rb: Fix missing support for full client
102
+ (GH-210)
103
+
104
+ 2019-03-22 Victor Nawothnig <Victor.Nawothnig@gmail.com>
105
+ * ext/oci8/oraconf.rb: fixup! Allow overriding library/include paths
106
+ (GH-210)
107
+
108
+ 2019-03-21 Victor Nawothnig <Victor.Nawothnig@gmail.com>
109
+ * setup.rb: Add documentation for new flags
110
+ (GH-210)
111
+
112
+ 2019-03-21 Victor Nawothnig <Victor.Nawothnig@gmail.com>
113
+ * ext/oci8/oraconf.rb: Allow overriding library/include paths
114
+ (GH-210)
115
+
116
+ 2019-01-06 Kubo Takehiro <kubo@jiubao.org>
117
+ * NEWS: Add changes between 2.2.6.1 and 2.2.7.
118
+ * lib/oci8/version.rb: Update to 2.2.7
119
+
120
+ 2019-01-06 Kubo Takehiro <kubo@jiubao.org>
121
+ * mkpkg-win32.rb, ruby-oci8.gemspec: Build binary gems for ruby 2.6
122
+ on Windows.
123
+
124
+ 2019-01-06 Kubo Takehiro <kubo@jiubao.org>
125
+ * ext/oci8/oci8.c: Updata doc comments for OCI8#long_read_len
126
+ and OCI8#long_read_len=. These are deprecated.
127
+
128
+ 2019-01-03 Kubo Takehiro <kubo@jiubao.org>
129
+ * lib/oci8/check_load_error.rb: Use fiddle instead of Win32API
130
+ to call WIN32 functions.
131
+
132
+ 2019-01-03 Kubo Takehiro <kubo@jiubao.org>
133
+ * lib/oci8/check_load_error.rb: Add more error diagnostics
134
+ when 'require "oci8"' fails with "OCI.DLL: 126(The specified
135
+ module could not be found.)".
136
+
137
+ 2019-01-03 Kubo Takehiro <kubo@jiubao.org>
138
+ * lib/oci8.rb, lib/oci8/check_load_error.rb: Exclude empty
139
+ parts of PATH on Windows.
140
+
141
+ 2018-12-23 Kubo Takehiro <kubo@jiubao.org>
142
+ * lib/oci8/check_load_error.rb: Check OCI.DLL archtecture
143
+ when load error. It worked for ruby installer but not
144
+ for ruby installer2.
145
+
146
+ 2018-12-23 Kubo Takehiro <kubo@jiubao.org>
147
+ * docs/install-instant-client.md: Add information about
148
+ the MSVC redistributable package required by Oracle 18.3 client.
149
+
150
+ 2018-09-16 Kubo Takehiro <kubo@jiubao.org>
151
+ * ext/oci8/hook_funcs.c: Fix "No shared library is found to hook." on macOS.
152
+ (oracle-enhanced issue #1768)
153
+
154
+ 2018-09-11 Kubo Takehiro <kubo@jiubao.org>
155
+ * ext/oci8/object.c, lib/oci8/cursor.rb: Change the internal structure
156
+ about object type binding to use array fetching for object types.
157
+
158
+ 2018-09-09 Kubo Takehiro <kubo@jiubao.org>
159
+ * ext/oci8/lob.c: Read lob data without checking readable size to
160
+ reduce number of network round trips from two to one.
161
+
162
+ 2018-09-05 Kubo Takehiro <kubo@jiubao.org>
163
+ * ext/oci8/bind.c, ext/oci8/stmt.c, lib/oci8/cursor.rb,
164
+ lib/oci8/oci8.rb, test/test_oci8.rb: Use array fetching when
165
+ LOB colums are in a query and no object types are in the query.
166
+
167
+ 2018-09-02 Kubo Takehiro <kubo@jiubao.org>
168
+ * ext/oci8/apiwrap.yml, ext/oci8/bind.c, ext/oci8/stmt.c,
169
+ lib/oci8/bindtype.rb, test/test_oci8.rb: Rewrite OCI8::BindType::Long
170
+ and OCI8::BindType::LongRaw to handle up to 2 gigabyte data using
171
+ dynamically allocated buffers.
172
+
173
+ 2018-08-22 Kubo Takehiro <kubo@jiubao.org>
174
+ * NEWS: Add changes between 2.2.5.1 and 2.2.6
175
+ * lib/oci8/version.rb: Update to 2.2.6
176
+ * mkpkg-win32.rb: Don't test with self-build ruby 2.4.
177
+
178
+ 2018-08-22 Kubo Takehiro <kubo@jiubao.org>
179
+ * ext/oci8/oci8lib.c: Load a Oracle client library which doesn't have
180
+ version number suffix also on Unix when runtime-check is enabled.
181
+ Oracle version numbers are incremented yearly sice Oracle 18c.
182
+
183
+ 2018-08-22 Kubo Takehiro <kubo@jiubao.org>
184
+ * ext/oci8/hook_funcs.c, ext/oci8/win32.c: Suppress warnings:
185
+ "'raise_error' defined but not used" and "'strncpy' specified
186
+ bound 512 equals destination size".
187
+
188
+ 2018-08-19 Kubo Takehiro <kubo@jiubao.org>
189
+ * ext/oci8/hook_funcs.c: Not depend on Oracle version number
190
+ of Oracle client file name suffix when hooking functions.
191
+ (rsim/oracle-enhanced#1754)
192
+ * test/test_all.rb, test/test_properties.rb, dist-files:
193
+ Add tests for hooking.
194
+
195
+ 2018-08-18 Kubo Takehiro <kubo@jiubao.org>
196
+ * test/test_oci8.rb: Fix to pass a test when the client is 11g
197
+ and the server is 18c. client_driver in v$session_connect_info
198
+ has an extra space at the end.
199
+
200
+ 2018-08-18 Kubo Takehiro <kubo@jiubao.org>
201
+ * ext/oci8/apiwrap.rb, ext/oci8/apiwrap.yml, ext/oci8/oci8.c,
202
+ ext/oci8/oci8.h, lib/oci8/oci8.rb, lib/oci8/oracle_version.rb,
203
+ test/test_oci8.rb: Fix OCI8#oracle_server_version to get
204
+ full version of Oracle 18c.
205
+
206
+ 2018-08-18 Kubo Takehiro <kubo@jiubao.org>
207
+ * lib/oci8/metadata.rb: Update doc comments of OCI8::Metadata::ArgBase#level
208
+ and OCI8::Metadata::ArgBase#arguments.
209
+ * test/test_package_type.rb, lib/oci8.rb: Fix to pass tests on Oracle 18c.
210
+ Detailed user-defined type information used in arguments isn't available
211
+ on Oracle 18c.
212
+
213
+ 2018-08-12 Kubo Takehiro <kubo@jiubao.org>
214
+ * test/test_clob.rb: Skip TestCLob#test_github_issue_20 because it
215
+ takes 4 minutes to test it in my Linux box.
216
+
217
+ 2018-08-12 Kubo Takehiro <kubo@jiubao.org>
218
+ * ext/oci8/lob.c, test/test_clob.rb: LOB#sync, LOB#sync= and LOB#flush
219
+ do nothing now. They have not worked by mistake from the beginning
220
+ because incorrect arguments has been passed to OCILobOpen().
221
+ Moreover it crashed Oracle 18c server-side processes and caused
222
+ "ORA-03113: end-of-file on communication channel."
223
+ (github issue #198)
224
+
225
+ 2018-01-28 Kubo Takehiro <kubo@jiubao.org>
226
+ * ext/oci8/object.c, lib/oci8/object.rb: Add timestamp with time zone
227
+ data type support in object type attributes.
228
+ (github issue #185)
229
+ * test/setup_test_object.sql, test/test_object.rb: Add tests for
230
+ timestamp and timestamp with time zone.
231
+
232
+ 2018-01-23 Kubo Takehiro <kubo@jiubao.org>
233
+ * ext/oci8/object.c, ext/oci8/oci8.h, lib/oci8/object.rb:
234
+ Add timestamp data type support in object type attributes.
235
+ (github issue #185)
236
+
237
+ 2017-12-27 Kubo Takehiro <kubo@jiubao.org>
238
+ * mkpkg-win32.rb: Remove '-rubygems' in the command line to run tests.
239
+ `ubygems.rb` was removed in ruby 2.5.
240
+
241
+ 2017-12-27 Kubo Takehiro <kubo@jiubao.org>
242
+ * NEWS: Add changes between 2.2.5 and 2.2.5.1
243
+ * lib/oci8/version.rb: Update to 2.2.5.1
244
+ * mkpkg-win32.rb: Build binary gems for ruby 2.5.
245
+
246
+ 2017-12-27 Kubo Takehiro <kubo@jiubao.org>
247
+ * test/test_clob.rb, test/test_oci8.rb: Suppress `warning: assigned but unused variable`
248
+
249
+ 2017-12-26 Yasuo Honda <yasuo.honda@gmail.com>
250
+ * circle.yml: CI with Ruby 2.5.0
251
+ (github pull request #182)
252
+
253
+ 2017-12-21 Yasuo Honda <yasuo.honda@gmail.com>
254
+ * test/test_break.rb: Suppress expected exceptions tested with Ruby 2.5
255
+ (github pull request #181)
256
+
257
+ 2017-12-21 Yasuo Honda <yasuo.honda@gmail.com>
258
+ * test/test_oranumber.rb: Suppress `warning: BigDecimal.new is deprecated`
259
+ (github pull request #180)
260
+
261
+ 2017-10-21 Kubo Takehiro <kubo@jiubao.org>
262
+ * NEWS: Add changes between 2.2.4.1 and 2.2.5
263
+ * lib/oci8/version.rb: Update to 2.2.5
264
+ * docs/number-type-mapping.md: minor fix
265
+ * dist-files: Add files.
266
+
267
+ 2017-10-18 Kubo Takehiro <kubo@jiubao.org>
268
+ * docs/number-type-mapping.md, README.md, dist-files: Add document
269
+ about the mapping between Oracle number types and Ruby classes.
270
+
271
+ 2017-10-17 Kubo Takehiro <kubo@jiubao.org>
272
+ * lib/oci8/check_load_error.rb: Check error reason when loading
273
+ failed with 'The specified module could not be found' on Windows.
274
+
275
+ 2017-10-17 Kubo Takehiro <kubo@jiubao.org>
276
+ * lib/oci8/check_load_error.rb: Fix LoadError while trying to check
277
+ errors in "require 'oci8lib_230.so'" on cygwin 2.8 or later.
278
+ (related to github issue #176)
279
+
280
+ 2017-10-17 Kubo Takehiro <kubo@jiubao.org>
281
+ * ext/oci8/ocinumber.c, test/test_oranumber.rb:
282
+ Add OraNumber#has_fractional_part?.
283
+
284
+ 2017-10-01 Kubo Takehiro <kubo@jiubao.org>
285
+ * ext/oci8/plthook_elf.c: Update plthook to use prelinked
286
+ libclntsh.so on Linux.
287
+ (github issue #172)
288
+
289
+ 2017-09-27 Kubo Takehiro <kubo@jiubao.org>
290
+ * ext/oci8/oci8lib.c: Change order to load libclntsh when runtime
291
+ api check is enabled on Unix.
292
+
293
+ 2017-09-24 Kubo Takehiro <kubo@jiubao.org>
294
+ * ext/oci8/oci8lib.c: Try to load $ORACLE_HOME/lib/libclntsh.so also
295
+ when runtime api check is enabled on Unix.
296
+
297
+ 2017-09-23 Kubo Takehiro <kubo@jiubao.org>
298
+ * lib/oci8/cursor.rb: Don't call unnecessary __paramGet(i) when a
299
+ cursor is executed more than once.
300
+ (pointed by OMOTO Kenji at github issue #171)
301
+
302
+ 2017-07-09 Kubo Takehiro <kubo@jiubao.org>
303
+ * ext/oci8/apiwrap.yml, ext/oci8/oci8.c, lib/oci8/oci8.rb:
304
+ Delete unused code using OCILogon2 and OCILogoff.
305
+
306
+ 2017-07-09 Kubo Takehiro <kubo@jiubao.org>
307
+ * ext/oci8/error.c: Delete OCIError#initialize defined by C code
308
+ to suppress warning: method redefined; discarding old initialize.
309
+ (github issue #168)
310
+
1
311
  2017-06-17 Kubo Takehiro <kubo@jiubao.org>
2
312
  * NEWS: Add changes between 2.2.4 and 2.2.4.1
3
313
  * lib/oci8/version.rb: Update to 2.2.4.1
4
- * lib/oci8/version.rb: Fix URL links
314
+ * lib/oci8/properties.rb: Fix URL links
5
315
  * docs/hanging-after-inactivity.md: Revised
6
316
 
7
317
  2017-06-16 Kubo Takehiro <kubo@jiubao.org>