activerecord-jdbc-adapter 61.2-java → 61.3-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa4df302770068a233f5d07c6af210f49bddca54244ab09ecc3419ba3128918d
4
- data.tar.gz: a1f4a473192ba55a305a8d62595fef416f00471a9d8957137966876325a25d03
3
+ metadata.gz: b7c1515914a3b1efa79d00597231d6e351262c6acbc9756fa73adecb05b232aa
4
+ data.tar.gz: b48d291203d3d5a7725857016e9b254b0241f043207ecf6ffdc442cdb6542ec3
5
5
  SHA512:
6
- metadata.gz: 6d6d41aa2bcbb0e9583e2c09c7b8b46357910def331a5bf9869f1eaf95199c6797f012ac57ef58dd2d144f4c6d7d46a86f52f87e55e24d7bf5166105355f760d
7
- data.tar.gz: 66ccf4e7075f94b6505669052f93bad576f4a6cb49ace225c049ce68a9d4302d2114352737f43bf0d8392de8c2a8ee1b28387caa2dda3e849880a7c8b82f42d6
6
+ metadata.gz: da1158e8205f1c19d277417db83c4607e6f332e8e767d13e580c6173d64cd0de96637ac5a04ce797b13f278f71e4148cdd399e5a2d7d4ad974e71b0b405a2280
7
+ data.tar.gz: f72f84ce311a84192ef65f0f63542ab77c77bdd673f86258756ec9ebcb4dcf44c73c50dcb4753fdd22b153f76112fe0c9141dfe80ce7f97d9ca7adf54f768cbd
@@ -17,7 +17,7 @@ jobs:
17
17
  strategy:
18
18
  fail-fast: false
19
19
  matrix:
20
- ruby-version: ['jruby-9.2.20.1']
20
+ ruby-version: ['jruby-9.3.13.0']
21
21
  db: ['mysql2']
22
22
  test_targets: ["rails:test_mysql2"]
23
23
  ar_version: ["6-1-stable"]
@@ -69,7 +69,7 @@ jobs:
69
69
  strategy:
70
70
  fail-fast: false
71
71
  matrix:
72
- ruby-version: [ 'jruby-9.2.20.1' ]
72
+ ruby-version: ['jruby-9.3.13.0']
73
73
  db: [ 'postgresql' ]
74
74
  test_targets: [ "rails:test_postgresql" ]
75
75
  ar_version: ["6-1-stable"]
@@ -119,7 +119,7 @@ jobs:
119
119
  strategy:
120
120
  fail-fast: false
121
121
  matrix:
122
- ruby-version: ['jruby-9.2.20.1']
122
+ ruby-version: ['jruby-9.3.13.0']
123
123
  db: ['sqlite3']
124
124
  test_targets: ["rails:test_sqlite3"]
125
125
  ar_version: ["6-1-stable"]
@@ -151,7 +151,7 @@ jobs:
151
151
  strategy:
152
152
  fail-fast: false
153
153
  matrix:
154
- ruby-version: ['jruby-9.2.20.1']
154
+ ruby-version: ['jruby-9.3.13.0']
155
155
  db: ['mysql2']
156
156
  test_targets: ["db:mysql test_mysql2"]
157
157
  prepared_statements: ['false', 'true']
@@ -196,7 +196,7 @@ jobs:
196
196
  strategy:
197
197
  fail-fast: false
198
198
  matrix:
199
- ruby-version: ['jruby-9.2.20.1']
199
+ ruby-version: ['jruby-9.3.13.0']
200
200
  db: ['postgresql']
201
201
  test_targets: ["db:postgresql test_postgresql"]
202
202
  prepared_statements: ['false', 'true']
@@ -243,7 +243,7 @@ jobs:
243
243
  strategy:
244
244
  fail-fast: false
245
245
  matrix:
246
- ruby-version: ['jruby-9.2.20.1']
246
+ ruby-version: ['jruby-9.3.13.0']
247
247
  db: ['sqlite3']
248
248
  test_targets: ['test_sqlite3']
249
249
 
Binary file
@@ -126,51 +126,52 @@ ArJdbc::ConnectionMethods.module_eval do
126
126
 
127
127
  private
128
128
 
129
- @@mysql_encodings = nil
129
+ MYSQL_ENCODINGS = {
130
+ "big5" => "Big5",
131
+ "dec8" => nil,
132
+ #"cp850" => "Cp850",
133
+ "hp8" => nil,
134
+ #"koi8r" => "KOI8-R",
135
+ "latin1" => "Cp1252",
136
+ "latin2" => "ISO8859_2",
137
+ "swe7" => nil,
138
+ "ascii" => "US-ASCII",
139
+ "ujis" => "EUC_JP",
140
+ "sjis" => "SJIS",
141
+ "hebrew" => "ISO8859_8",
142
+ "tis620" => "TIS620",
143
+ "euckr" => "EUC_KR",
144
+ #"koi8u" => "KOI8-R",
145
+ "gb2312" => "EUC_CN",
146
+ "greek" => "ISO8859_7",
147
+ "cp1250" => "Cp1250",
148
+ "gbk" => "GBK",
149
+ #"latin5" => "ISO-8859-9",
150
+ "armscii8" => nil,
151
+ "ucs2" => "UnicodeBig",
152
+ "cp866" => "Cp866",
153
+ "keybcs2" => nil,
154
+ "macce" => "MacCentralEurope",
155
+ "macroman" => "MacRoman",
156
+ #"cp852" => "CP852",
157
+ #"latin7" => "ISO-8859-13",
158
+ "cp1251" => "Cp1251",
159
+ "cp1256" => "Cp1256",
160
+ "cp1257" => "Cp1257",
161
+ "binary" => false,
162
+ "geostd8" => nil,
163
+ "cp932" => "Cp932",
164
+ #"eucjpms" => "eucJP-ms"
165
+ "utf8" => "UTF-8",
166
+ "utf8mb4" => false,
167
+ "utf16" => false,
168
+ "utf32" => false,
169
+ }
170
+
130
171
 
131
172
  # @see https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-charsets.html
132
173
  def convert_mysql_encoding(encoding) # to charset-name (characterEncoding=...)
133
- ( @@mysql_encodings ||= {
134
- "big5" => "Big5",
135
- "dec8" => nil,
136
- #"cp850" => "Cp850",
137
- "hp8" => nil,
138
- #"koi8r" => "KOI8-R",
139
- "latin1" => "Cp1252",
140
- "latin2" => "ISO8859_2",
141
- "swe7" => nil,
142
- "ascii" => "US-ASCII",
143
- "ujis" => "EUC_JP",
144
- "sjis" => "SJIS",
145
- "hebrew" => "ISO8859_8",
146
- "tis620" => "TIS620",
147
- "euckr" => "EUC_KR",
148
- #"koi8u" => "KOI8-R",
149
- "gb2312" => "EUC_CN",
150
- "greek" => "ISO8859_7",
151
- "cp1250" => "Cp1250",
152
- "gbk" => "GBK",
153
- #"latin5" => "ISO-8859-9",
154
- "armscii8" => nil,
155
- "ucs2" => "UnicodeBig",
156
- "cp866" => "Cp866",
157
- "keybcs2" => nil,
158
- "macce" => "MacCentralEurope",
159
- "macroman" => "MacRoman",
160
- #"cp852" => "CP852",
161
- #"latin7" => "ISO-8859-13",
162
- "cp1251" => "Cp1251",
163
- "cp1256" => "Cp1256",
164
- "cp1257" => "Cp1257",
165
- "binary" => false,
166
- "geostd8" => nil,
167
- "cp932" => "Cp932",
168
- #"eucjpms" => "eucJP-ms"
169
- "utf8" => "UTF-8",
170
- "utf8mb4" => false,
171
- "utf16" => false,
172
- "utf32" => false,
173
- } )[ encoding ]
174
+ MYSQL_ENCODINGS[ encoding ]
174
175
  end
175
176
 
176
177
  end
@@ -1,3 +1,3 @@
1
1
  module ArJdbc
2
- VERSION = '61.2'
2
+ VERSION = '61.3'
3
3
  end
@@ -2712,7 +2712,7 @@ public class RubyJdbcConnection extends RubyObject {
2712
2712
  }
2713
2713
  else { // e.g. `BigDecimal '42.00000000000000000001'`
2714
2714
  statement.setBigDecimal(index,
2715
- RubyBigDecimal.newInstance(context, context.runtime.getModule("BigDecimal"), value).getValue());
2715
+ RubyBigDecimal.newInstance(context, context.runtime.getModule("BigDecimal"), value, RubyFixnum.newFixnum(context.runtime, Integer.MAX_VALUE)).getValue());
2716
2716
  }
2717
2717
  }
2718
2718
 
@@ -478,7 +478,7 @@ public class SQLite3RubyJdbcConnection extends RubyJdbcConnection {
478
478
  statement.setDouble(index, ((RubyNumeric) value).getDoubleValue());
479
479
  }
480
480
  else { // e.g. `BigDecimal '42.00000000000000000001'`
481
- RubyBigDecimal val = RubyBigDecimal.newInstance(context, context.runtime.getModule("BigDecimal"), value);
481
+ RubyBigDecimal val = RubyBigDecimal.newInstance(context, context.runtime.getModule("BigDecimal"), value, RubyFixnum.newFixnum(context.runtime, Integer.MAX_VALUE));
482
482
  statement.setString(index, val.getValue().toString());
483
483
  }
484
484
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-jdbc-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: '61.2'
4
+ version: '61.3'
5
5
  platform: java
6
6
  authors:
7
7
  - Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-29 00:00:00.000000000 Z
11
+ date: 2024-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -17,8 +17,8 @@ dependencies:
17
17
  - !ruby/object:Gem::Version
18
18
  version: 6.1.0
19
19
  name: activerecord
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  requirements: []
234
- rubygems_version: 3.2.29
234
+ rubygems_version: 3.3.26
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: JDBC adapter for ActiveRecord, for use within JRuby on Rails.