ibm_db 2.5.10 → 2.5.11

Sign up to get free protection for your applications and to get access to all the features.
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
 
@@ -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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ibm_db
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.5.10
5
+ version: 2.5.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - IBM
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-05-01 00:00:00 Z
13
+ date: 2012-12-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - ActiveRecord, at least 1.15.1
101
101
  rubyforge_project: rubyibm
102
- rubygems_version: 1.8.11
102
+ rubygems_version: 1.8.24
103
103
  signing_key:
104
104
  specification_version: 3
105
105
  summary: "Rails Driver and Adapter for IBM Data Servers: {DB2 on Linux/Unix/Windows, DB2 on zOS, DB2 on i5/OS, Informix (IDS)}"