ibm_db 2.5.10-x86-mswin32-60 → 2.5.11-x86-mswin32-60

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.
data/CHANGES CHANGED
@@ -1,5 +1,10 @@
1
1
  Change Log
2
2
  ==============
3
+ 2012/12/07 (IBM_DB adapter 2.5.11, driver 2.5.11) :
4
+ - Fixed bug #29633 - Deletes cause too many handles to be consumed and not freed
5
+ - Support for Mac OS CLI library loading to check create and drop db functionality - #29625
6
+ - Fixed #29657 - @servertype of IBM_DBAdapter could end up being nil on DB2 for Z/OS version 9
7
+
3
8
  2012/05/01 (IBM_DB adapter 2.5.10, driver 2.5.10) :
4
9
  - Support for Rails-3.2
5
10
  - Changes in installation process. Now user should set only one environment variable IBM_DB_HOME to DB2/IBM_Data_Server_Driver installation directory
data/README CHANGED
@@ -1,5 +1,5 @@
1
1
  =====================================================================
2
- README for the IBM_DB Adapter (2.5.10) and Driver (2.5.10) (2012/04/30)
2
+ README for the IBM_DB Adapter (2.5.11) and Driver (2.5.11) (2012/12/07)
3
3
  For ActiveRecord Version >= 1.15.5 (and Rails >= 1.2.5)
4
4
  =====================================================================
5
5
 
data/ext/ibm_db.c CHANGED
@@ -12,7 +12,7 @@
12
12
  +----------------------------------------------------------------------+
13
13
  */
14
14
 
15
- #define MODULE_RELEASE "2.5.10"
15
+ #define MODULE_RELEASE "2.5.11"
16
16
 
17
17
  #ifdef HAVE_CONFIG_H
18
18
  #include "config.h"
@@ -2761,8 +2761,8 @@ static void _ruby_ibm_db_clear_conn_err_cache()
2761
2761
  * only by IBM DB2 Universal Database.
2762
2762
  * ====<em>set_replace_quoted_literal</em>
2763
2763
  * This variable indicates if the CLI Connection attribute SQL_ATTR_REPLACE_QUOTED_LITERAL is to be set or not
2764
- * To turn it ON pass IBM_DB::SET_QUOTED_LITERAL_REPLACEMENT_ON
2765
- * To turn it OFF pass IBM_DB::SET_QUOTED_LITERAL_REPLACEMENT_OFF
2764
+ * To turn it ON pass IBM_DB::QUOTED_LITERAL_REPLACEMENT_ON
2765
+ * To turn it OFF pass IBM_DB::QUOTED_LITERAL_REPLACEMENT_OFF
2766
2766
  *
2767
2767
  * Default Setting: - IBM_DB::SET_QUOTED_LITERAL_REPLACEMENT_ON
2768
2768
  *
@@ -33,6 +33,11 @@
33
33
  /*32-bit library in the archive libdb2.a*/
34
34
  #define LIBDB2 "libdb2.a(shr.o)"
35
35
  #endif
36
+ #elif __APPLE__
37
+ #define DLOPEN dlopen
38
+ #define DLSYM dlsym
39
+ #define DLCLOSE dlclose
40
+ #define LIBDB2 "libdb2.dylib"
36
41
  #else
37
42
  #define DLOPEN dlopen
38
43
  #define DLSYM dlsym
@@ -532,6 +532,7 @@ module ActiveRecord
532
532
  when /DB2/i # DB2 for zOS
533
533
  case server_info.DBMS_VER
534
534
  when /09/ # DB2 for zOS version 9 and version 10
535
+ @servertype = IBM_DB2_ZOS.new(self)
535
536
  when /10/
536
537
  @servertype = IBM_DB2_ZOS.new(self)
537
538
  when /08/ # DB2 for zOS version 8
@@ -1182,8 +1183,12 @@ module ActiveRecord
1182
1183
  if binds.nil? || binds.empty?
1183
1184
  update_direct(sql, name)
1184
1185
  else
1185
- if stmt = exec_query(sql,name,binds)
1186
- IBM_DB.num_rows(stmt)
1186
+ begin
1187
+ if stmt = exec_query(sql,name,binds)
1188
+ IBM_DB.num_rows(stmt)
1189
+ end
1190
+ ensure
1191
+ IBM_DB.free_stmt(stmt) if(stmt)
1187
1192
  end
1188
1193
  end
1189
1194
  end
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.10
4
+ version: 2.5.11
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
7
  - IBM
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2012-05-01 00:00:00 +05:30
12
+ date: 2012-12-07 00:00:00 +05:30
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency